Is there any way to build the docker image with customized IP in /etc/hosts file ?
I can see --add-host option in docker container run command to add custom IP in existing docker image. But if I use this option I need to start the container with customized IP all time.
Is this command adding the host entry to the container’s /etc/hosts file? I can not see that happening. If I bash inside container, and ping the host i just added, it is still not resolvable inside it. Please let me know if I am missing anything.