Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
/ docker-aaiteh Public archive

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

Notifications You must be signed in to change notification settings

RoPP/docker-aaiteh

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

No packages published