
Add a Host Entry to a Docker Container in 1 Simple Step
Occasionally when working with a pre-built Docker Container image, it will become necessary for you to add an entry to the /etc/hosts file within the Docker container. Docker provides an easy way to add a host entry to a docker container. An example of when would become necessary is if you are installing Wordpress as a Docker container and then receiving the Wordpress loopback error when you login to the admin screen.