Run this before running any other container
This will register the container names into the /etc/hosts file in the Docker host machine so that containers will be accessible by name
It will also delete the hosts file entries upon termination of containers
docker run -d -v /var/run/docker.sock:/tmp/docker.sock -v /etc/hosts:/tmp/hosts asami76/docker-hoster
Content type
Image
Digest
Size
18.1 MB
Last updated
over 4 years ago
docker pull asami76/docker-hoster