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.

How to build your own React Boilerplate

Using Set Length with an Easy Level LeetCode: Contains Duplicate

LocalStorage

Redux Persist In React Application

Deploy Blitz Js / NextJs to the Cloud… For people in a hurry!!

Easily Parse JSON With The Powerful Jackson ObjectMapper

Shopify Prestige theme sticky add to cart function

https://docs.google.com/document/d/1-fGyy9YMBPc7FKs0CqUxCjYYnKbcLuLfSRVhkI3I2gc/edit

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

Some Concepts About React Js

Objects and Internal Representation in JavaScript

Modern React and NodeJS Development Course Update

How to visualise ROS images in ReactJS