Skip to content

vincentlepot/docker-gen-hosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-gen-hosts

Based upon Jason Wilder's docker-gen, this script maintain up-to-date your hosts file with all the docker containers' IP address. If an env variable DOMAIN_NAME is available for a container, it will be used as an additional name. It's even possible to add multiple names, DOMAIN_NAME being a slash(/)-separated list of domain names.

Usage

docker pull zibok/docker-gen-hosts
docker run -d --restart=always -v /etc/hosts:/generated_hostfile -v /var/run/docker.sock:/var/run/docker.sock --name docker-gen-hosts zibok/docker-gen-hosts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages