Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the main objectives of Inventory ?

Answered: 1 week ago

Question

Explain the various inventory management techniques in detail.

Answered: 1 week ago

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago