Docker Integration With JavaScript , Docker Platform as a Service (PaaS)
📌 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
Prerequisite for this task :.
- Knowledge of docker
- Knowledge of webserver
- Docker should be installed and running
Lets Start :
First install apche webserver by uising the coomand -
yum install httpd
Start the httpd services
Also stop the firewall using the Command -
systemctl stop firewalld
Now go to folder /var/www/html/ and create web UI.
For backend go to /var/www/cgi-bin/ and create a script.
Code link for web ui and script:
Also disable Selinux using command
setenforce 0
Also add permission for apache webserver to run commands .
For this open /etc/sudoers file and write the coomand
apache ALL=(ALL) NOPASSWD: ALL
Now launch the web page uing -
http://ip:/name_of_webpage.html
Thanks for reading the article.