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:
Now about our backend, where I have already installed apache as a web server and here is our python program:
Also we have to give the permission in /etc/sudoers to run the commands as sudo user
Now we can use our GUI to run Docker commands:
And there you have it.