Linux Docker and the underlying caching, nscd, hosts

if i place httpd in a docker container, should also start the nscd inside the container and configure the /etc/hosts, etc. or should i leave it to the underlying OS to do the caching and name resolve ? whats the best practice here ?

Thanks !!

  • How to copy files from dockerfile to host?
  • How to prevent docker-compose building the same image multiple times?
  • Configure sendmail inside a docker container
  • Docker image create very slow under proxy network
  • AWS EC2 Task/Service container with java command in the container definitions
  • docker import data in mongodb successfull but nothing in database
  • SpringBoot with Tomcat uses around 190mb of memory. What processes are running within Springboot?
  • Is there a way to add only changed files to a docker image as a new layer - without resorting to docker commit?
  • How is a Docker Machine marked as active?
  • How can i mount volume of glusterfs to /var/lib/docker in ubuntu 14.04
  • Where does go job take the environment variables from?
  • Dockerfile won't run script as user with sudo rights
  • One Solution collect form web for “Linux Docker and the underlying caching, nscd, hosts”

    The application running in the container will use the containers configuration to resolve DNS requests. This is dependent upon which source container you are running.

    If you need the container to have non default behaviour (say use a specific DNS server for resolution) then it is best to roll your own version of the container with modified DNS configuration.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.