VidyaMai S
Aug 11, 2021

creating a Web Application for Docker

đź“Ś In this task you have to create a Web Application for Docker (one of the great Containerization Tool which provides the user Platform as a Service (PaaS)) by showing your own creativity and UI/UX designing skills to make the webportal user friendly.

đź“Ś This app will help the user to run all the docker commands like:

👉docker images
👉docker ps
👉docker run
👉docker rm -f
👉docker exec
👉 add more if you want. (Optional)
👉 Make a blog/article/video explaining this task step by step.

#java file to store the values declared

#! /usr/bin/python3

import cgi
import subprocess
import time

print(“content-type:text/html”)
print()

#time.sleep(10)

f = cgi.FieldStorage()
cmd = f.getvalue(“x”)
#print(cmd)
o=subprocess.getoutput(“sudo “ + cmd)
print(o)

#creating a webpage for docker commands to enter