I am making a docker image using a pretty simple Dockerfile. Inside the Dockerfile I have this command:
RUN printf "188.8.131.52 www.hahaha.com \n" >> /etc/hosts
The command itself seems to be OK, since creation of the image does not halt at this point.
The issue is this: When running the image, the line that is supposed to have been inserted inside "/etc/hosts" is not there.
Now, I searched around and found out that before version 1.2 of docker, there was an issue with the hosts file inside the containers. In my case, I am using version 1.5, the latest as of this moment.
Am I missing something?
There seem to be a lot of issues for this, both open and closed, in docker's github pages.