Docker Community Forums

Share and learn in the Docker community.

Need location containers created by libcontainer - hostname resolution


(Tony Su) #1

Am trying to deploy a container which does not know how to resolve hostnames.

In the past with LXC I simply copied /etc/resolv on the Host (or other reliable source) to the same location in the container.

Need to know the default location Docker >.9 deploys containers to do the same.
Am assuming that since the changeover from LXC the same namespaces and file locations are not the same. Searched documentation and can’t find this info.

Thx


(Sven Dowideit) #2

Docker 1.2.0 has added writeable /etc/hosts, /etc/hostname and /etc/resolve.conf - https://blog.docker.com/2014/08/announcing-docker-1-2-0/

Will that help?