JavaScript Integration with Docker
Task Description đź“„
⚙️ Task 7.1 -
đź“Ś We 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 web portal 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
👉 add more if you want. (Optional)
Step 1 :
Check the ip of your os using cmd ifconfig enp0s3.
Then Start the Apache web server services using cmd systemctl start httpd .
Then go to /var/www/html folder. Here, I have created html file named main.html to have the content of our webapp.
main.html
Step 2:
Create a python cgi file in cgi-bin folder. In my case, i have created home.py file.
home.py
Step 3:
Stop the firewall in order to not face any issue while loading the webapp. Use cmd systemctl stop firewalld
Now on chrome type your_ip/python_file_name to see the outcome. In my case it is 192.168.43.140/main.py
If it is showing error…
Then type the below commands to solve the error.
Now , webapp will run smoothly.
thank you for reading:)
#worldrecordholder #training #internship #makingindiafutureready #summer #summertraining
#python #javascript #docker #rightmentor #deepknowledge #linuxworld #vimaldaga #righteducation