Creating web application for Docker using JavaScript!!

JavaScript is a programming language that conforms to the ECMAScript specification.

To make a web portal first we have to know how we can make a web server using RHEL8. For this first we have to launch a Redhat Linux OS and configure yum in it. Then we can make a web server using command yum install httpd. Once the installation is done, use systemctl restart httpd command to start the service. Now your OS will act as a web server. Now this OS contains one directory /var/www/html where we can write all our codes required to create web application.

Now to access any program in a system without login in that system we need ip address of that system. Once we know the ip address of the system, on our behalf some program in the same system provide a way like interface which helps us to use the program in the system without login in . This program is known as Common Gateway Interface(CGI). It is the base of any web technology . All these codes can be written in a directory /var/www/cgi-bin.

Once code is written in both the directories we can access the program using web browser . The syntax of accessing is : “http://ip_address_of_system/file_name ”. Example: http:192.168.43.40/web.html.

To see all the codes , you can refer the following github repository:

Sajal05-Jain/Task-7

Contribute to Sajal05-Jain/Task-7 development by creating an account on GitHub.

github.com

After writing all the necessary codes, when i access docker.html (this file contains all the HTML, CSS and JS code) using web browser i got an interface like this:

Now i can run any docker command by writing in the input box provided and click on submit to see the outputs. Some of the screenshots of the command that i run are attached below:

docker ps command :

docker images command :

docker run command :

docker rm command :

Once you are done with running the commands , press exit button. This will redirect you to exit_docker.html

Thanks for reading…

--

--

--

Flutter Developer & Full Stack Developer

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

TypeScript, Understanding the why.

Listening to Dark Mode changes: A real world case for MutationObserver

Responding dark mode changes simultaneously by MutationObserver API

Anatomy of a React Class Component (Part I)

Single Threaded? Asynchronous? What!?

Increase 30% of conversion rate with Facebook Pixel

Leetcode Q424. Longest Repeating Character Replacement (Q360)

TokenGating- Grant exclusive access to owners of select NFT collections

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
Aditya Jain

Aditya Jain

Flutter Developer & Full Stack Developer

More from Medium

Coding Diaries — BITS Pilani Postman API Hackathon 1.0

Coding principles and JavaScript

js class 2

Learn Local Storage by building an React application PlanYourDay — Part 1