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

Django in a Nutshell for Beginners

Send Push Notification From Rails to iOS App

Push Notification on Mobile Phone

Setup 4 Node Hadoop Cluster on AWS EC2 Instances

MYSQL Sharding Tutorial

Generics in C#

Making Sense of AWS EC2 Instance Type Pricing: ECU Vs. vCPU

A Cheap & Fast Hack To Improving Deployments With Feature Flags

7 ways to to speed up your UI on iOS

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

Store and use your SSH password securely for git on Windows

Alexa, ask my TV to do something

Publish NodeJS app on Linux. Using Snapcraft in windows.

HowTo: Building a Windows 2019 Docker Image with SQL Server 2019