Setting Up Docker Terminal On WebApp….

The output of the webApp look like this.

Follow the steps to create this kind of WebApp.

I have put all of my code in my GitHub repository

link — https://github.com/code-sourabh/Linux-Terminal-WebApp.git

The code for HTML file is already there in repo with name index.html and is self explanatory.

To connect WebApp with docker we will use CGI programming.

The code for CGI python program is also present in GitHub repo.

Make a Note of few points-

- Make sure the httpd webserver we are using for CGI has it’s port open and is not restricted by firewall

- The docker never connect to external program by default due to it’s socket program functionality.

- To connect to docker with external program. make sure u allow other users to use docker.sock file. for this run the command.

# chmod 777 /etc/run/docker.sock

Make sure you copy the CGI file in /var/www/cgi-bin/ file.

Now start the Httpd services.

# systemctl start httpd

Now launch the WebApp and it will look like this..

Now run any docker command in the input box.

And VOILA……

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Get Started With A Demo Of Bridgera IoT

Get Started With A Demo Of Bridgera IoT

How I wasted my tech life in college

Demystifying Operator Development

Programming in The New World

Introduction to dtplyr

Time Tracking in the Agile Process

How to Fix Windows Update 8024402c Error in Windows 10?

Anomaly Detection With Isolation Forest

Image of a red flower among yellow flowers

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
Sourabh Mishra

Sourabh Mishra

More from Medium

How to install and setup Pycharm and venv in Windows 10

SIEM TOOLS & CONFUSION MATRIX

How to Install Active Directory for Beginners (Windows Server 2019)

How to Install OpenSpeedTest on Docker with Portainer