Docker Webapp using JavaScript and Python

Creating an app which will help the user to run all the docker commands like:

🎯docker images
🎯docker ps
🎯docker run
🎯docker rm -f
🎯docker start
🎯docker stop


  1. Install HTTPD software and enable it’s service.
  2. Install Docker-ce and enable it’s service.
  3. Internet connectivity

Steps to be followed:

  1. Enable httpd service: “systemctl start httpd”
  2. Stop firewalld service: “systemctl stop firewalld”
  3. Stopping Selinux services using: “setenforce 0”
  4. Add Docker to apache’s groups for permission as we need to run it as a Backend server.
  5. Add Apache to sudoer’s config file
  6. Adding “index.html” code to the “/var/www/html”
  7. Adding python backend CGI-code to the “/var/www/cgi-bin”
  8. Make the python file executable: “chmod +x <filename>”
  9. Finally accessing your webapp via IP with the help of Browser.

Now let’s get started:

Step-1: Starting the httpd, Stopping the firewall and disabling the selinux:

>> systemctl stop firewalld
>> systemctl start httpd
>> setenforce 0

Step-2: Add the apache to docker group.

>> vim /etc/group
>> docker:x:<someumber>:apache
Above is Important for permission purpose.

Step-3: Adding the apache to Sudoers config file.

>> vim /etc/sudoers
>> apache ALL:(ALL) NOPASSWD : ALL

Step-4: Add the front-end code to the webserver.

>> Go to /var/www/html
>> Create a file name “index.html”
And Add the following code to it!!

Step-5: Adding Backend-server code

>> Go to /var/www/cgi-bin
>> create a file named
And add the Following code to it!!

Step-6: Finally go the IP and you will see you DockerAPP with 100% functionality.

Hope you Like it, Keep on learning and keep on Improving…⚡




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Student from 2nd Year, A proud ARTH learner, love new technologies, Curious about many thing, likes to explore places, love eating pizza and much more.