A set of python scripts displaying the local docker containers structure and status on an ascii map.


License
MIT
Install
pip install docker-ascii-map==1.2.1

Documentation

PyPI version

docker-ascii-map

A set of python scripts displaying the local docker containers structure and status on an ascii map.

Requirements

  • python 3.5
  • docker-py
  • termcolor

Install

You can install this tool from PyPI:

alcibiade@mobydick:~$ sudo pip3 install docker-ascii-map
Collecting docker-ascii-map
  Downloading docker-ascii-map-1.2.0.tar.gz
Installing collected packages: docker-ascii-map
  Running setup.py install for docker-ascii-map ... done
Successfully installed docker-ascii-map-1.2.0

Usage

usage: docker-ascii-map [-h] [-v] [-c] [-m]

Display the docker host contents on a visual map.

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -c, --color    Use color in map display
  -m, --mono     Render the map in monochrome

Below is a sample of a host running several applications on multiple networks. A container is routing traffic to these networks from the host.

alcibiade@mobydick:~/docker-ascii-map$ docker-ascii-map
 
                                                   +- chesscorp_default ----------------+
                                                   | [✓] chesscorp_web_1                |
80 ]------------  [✓] frontend_httpd_1 ------+-----|     chesscorp/chess-club           |
                      httpd:2.4              |     | [✓] chesscorp_database_1           |
                                             |     |     postgres:9.5                   |
                                             |     | [✓] chesscorp_mail_1               |
                                             |     |     namshi/smtp                    |
                                             |     +------------------------------------+
                                             |     +- wordpress_default ----------------+
                                             |     | [✓] wordpress_web_1                |
                                             |     |     wordpress_web                  |
                                             +-----| [✓] wordpress_db_1                 |
                                                   |     mysql:5.7                      |
                                                   | [✓] wordpress_mail_1               |
                                                   |     namshi/smtp                    |
                                                   +------------------------------------+
                                                   +- mail_default ---------------------+
25 ]-----------------------------------------------+ [✓] mail_mailserver_1              |
                                                   |     tvial/docker-mailserver:latest |
                                                   +------------------------------------+
                                                   +- proxy_default --------------------+
                                                   | [❌] proxy_squid_1                  |
                                                   |     sameersbn/squid                |
                                                   +------------------------------------+