Docker GUI using JavaScript

Docker GUI using JavaScript

Today we are going to develop Docker GUI (Web Application) made with HTML, CSS and JavaScript through which we can run following docker commands:

  • docker images : shows downloaded docker images
  • docker pull: Download Container Image
  • docker ps : Shows list of running and launched docker containers
  • docker run: Launch Docker Container
  • docker rm -f: Remove/Delete Running containers
  • docker exec: Execute Commands in Docker

First, let us look at front end part:

Screenshot 2021-06-24 173831.png

Now about our backend, where I have already installed apache as a web server and here is our python program:

Screenshot 2021-06-24 163322.png

Also we have to give the permission in /etc/sudoers to run the commands as sudo user

Screenshot 2021-06-24 163210.png

Now we can use our GUI to run Docker commands:

Screenshot 2021-06-24 173831.png

Screenshot 2021-06-24 173649.png

And there you have it.