Docker Community Forums

Share and learn in the Docker community.

Why can't add /etc/hosts to docker image?

#1

I know this could be done in the container, but I’m just asking why not in the image because that will help me how docker works internally and the reason of that will open up some scopes of the right way to use docker.

And is there any other than /etc/hosts? it’s like all /etc and system directories?