# Rancher server /etc/hosts

**URL:** <https://forums.suse.com/t/rancher-server-etc-hosts/5849>\
**Category:** Rancher 1.x\
**Created:** [March 14, 2017, 1:50pm UTC](https://forums.suse.com/t/rancher-server-etc-hosts/5849 "2017-03-14T13:50:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Listener\_me](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/listener_me/32/5836_2.png) [@Listener\_me](https://forums.suse.com/u/Listener_me)\
**Post date:** [March 14, 2017, 1:50pm UTC](https://forums.suse.com/t/rancher-server-etc-hosts/5849/1 "2017-03-14T13:50:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sjiveson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sjiveson/32/966_2.png) [@sjiveson](https://forums.suse.com/u/sjiveson)\
**Post date:** [March 15, 2017, 10:44am UTC](https://forums.suse.com/t/rancher-server-etc-hosts/5849/2 "2017-03-15T10:44:44Z")

</div>

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

> **[Docker run reference](https://docs.docker.com/engine/reference/run/#managing-etchosts)**
>
> Docker run reference Docker runs processes in isolated containers. A container is a process which runs on a host. The host may be local or remote. When an operator executes...
