Skip to content

Update automatically your '/etc/hosts' of your running containers.

License

Notifications You must be signed in to change notification settings

sjkeerthi/docker-hostmapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-hostmapper

Updates automatically your '/etc/hosts' of your running containers.

About

Basically it fetch your container name and the IP Address and add to your base machine "/etc/hosts" automatically.

USAGE

The easiest way is to use with docker image

$ docker run -d --name docker-hostmapper --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /etc/hosts:/tmp/source/hosts sjkeerthi/docker-hostmapper:latest

Note: the --restart=always option will make the container start automatically with your computer (recommended).

Tested on Linux based Machines.

Idea

More Ideas and contribution are welcome to make this more efficient.

About

Update automatically your '/etc/hosts' of your running containers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages