Python 3 script that displays the ip addresses of the active docker containers.
Output:
abc_nginx 172.21.0.4
abc_php 172.21.0.5
abc_phpmyadmin 172.21.0.3
abc_mysql 172.21.0.2
Requirements:
python3
Usage:
git clone https://github.com/jakubthedeveloper/DockerIps.git
cd DockerIps
python3 docker_ips.py
Install in the OS
cp docker_ips.py /usr/local/bin/
sudo chmod a+x /usr/local/bin/docker_ips.py
From this point you can just type docker_ips.py
to run the tool.