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 ?
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.