Simple Docker  Monitoring Dashboard

I’ve spent a couple of weeks learning about the Docker API and decided to create a simple little dashboard. Developed in PHP and still under development but though it would be fun to share in the mean time.

get it on git here:


  • Apache 2 installed or running from a docker container
  • Docker API port opening
  • read/write permissions on ‘/hosts’ folder. (I have deliberately created this so no database is needed. All config files are wrote to ‘/hosts’

command line:

cd /var/www/*yourDir*

sudo git clone
cd /docker-dash
sudo mkdir hosts

Got to http://yourwebsite/docker-dash/

You should be promoted for your first host’s IP address. I have assumed port 2375 will have been used. If you cannot add a host or get:

Warning: fopen(hosts/host-1.php): failed to open stream: No such file or directory in /var/www/html/test/docker-dash/add_host_post.php on line 16

Notice: Undefined variable: myfile in /var/www/html/test/docker-dash/add_host_post.php on line 16
Cannot open file:

Make sure read/write permissions are available for /hosts/

After successful permissions have been applied you will see:

Now you should be able to see your host details including running containers and memory. Now try adding your next hosts from the navigation bar on the right.


Add your second host’s details.

Continue as above for all your hosts. All hosts will be dynamically added to the dashboard. Finally you will be able to monitor all your Docker hosts and containers from just the one page.

Matt Shore - Docker Dash

Leave a Reply

Your email address will not be published. Required fields are marked *