Skip to content

Automatically appends alias for container ip to your host file

Notifications You must be signed in to change notification settings

mannebusk/docker-autoalias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Autoappend aliases in your host file

Everytime you start or stop a container, it will add or remove the container from your host file. The container name is used as the alias.

Installation

Make sure you have jq installed.

Install jq

Clone this repo.

make install

To start the daemon, run:

systemctl start docker-autoalias

Now if you start a container, you should see it appended to /etc/hosts.

To make sure it starts automatically:

systemctl enable docker-autoalias

About

Automatically appends alias for container ip to your host file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published