Rancher server /etc/hosts

Hello,

Restarting the rancher server container is removing the custom changes done inside /etc/hosts

any ideas to preserve the data or add the domain ip pair while creating the rancher server container?

Thanks

You can add a --add-host="some_name:some_ip" parameter to your docker run command.

1 Like