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 !!

  • installation of nodejs returned a non-zero code: 1 with docker build
  • cannot reach web app from docker host (not docker-machine)
  • Ansible error: KeyError: 'ApiVersion'
  • Asp.net 5 - Docker
  • Simulation “docker build -f” with ansible module “docker_image”
  • Load balancing docker swarm using Ha Proxy
  • How to pass the Docker CLI Arguments when starting a container using Kubernetes
  • Can ALL untagged docker.io images be safely removed?
  • aws container service \ how dockers configured for communicating with each other
  • Using a shared MySQL container
  • Cannot reach files found on host with Docker (Failed to open stream: Connection timed out)
  • Docker MongoDB error : Can't call something
  • 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.