Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

RoPP/docker-aaiteh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-aaiteh

Tiny python script to add ip and hostname of container in /etc/hosts.

Installation

Install docker-py

For debian :

sudo apt install cmake python-docker unzip pkg-config
wget https://github.com/RoPP/docker-aaiteh/archive/master.zip && \
unzip master.zip && \
cd docker-aaiteh-master && \ 
mkdir build && \
cd build && \
cmake .. && \
sudo make install && \
sudo systemctl enable docker-aaiteh.service && \
sudo systemctl start docker-aaiteh.service

Usage

Nothing to do. When you start a container, it should be added to your /etc/hosts file with his ip address. It should be removed when you stop it.

Enjoy :)

About

Tiny python script to add ip and hostname of container in /etc/hosts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors