Question
In centos8, Please write a script that deploys an Apache container via Docker. This script must be run by the root user and perform the
In centos8, Please write a script that deploys an Apache container via Docker. This script must be run by the root user and perform the following:
Disable SELinux on your Docker server to the program from interfering with Apache. Use text transformation to replace the SELinux configuration file line that activates the program with a line that completely disables it.
Create the following directory: /home/cit470/website.
Run the command in the documentation below to deploy an Apache 2.4 container. You will need to modify that command with the following information: Name the container 470_apache. Use the folder you created instead of the generic /home/user/website/.
When the deployment is finished (no verification checks needed), print a message that confirms the container is deployed and prints a link to the main webpage. The link should be formatted as follows: http://[vm_ip_address]:8080. Store the Docker servers IP address in a variable and then print it here. Make sure you use http and port 8080 in the script and browser address bar. There is no need to configure HTTPS.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started