Exam 200-901 Topic 4 Question 334 Discussion
Actual exam question for Cisco's 200-901 exam
Question #: 334
Topic #: 4
Question #: 334
Topic #: 4
Which two commands download and execute an Apache web server container in Docker with a port binding 8080 in the container to 80 on the host? (Choose two.)
Suggested Answer: C,D Vote an answer
To download and run an Apache web server container in Docker with a port binding of 8080 in the container to port 80 on the host, you can use the following two commands:
1. docker pull httpd:latest - This command will download the latest version of the Apache web server Docker image from the Docker Hub.
2. docker run -p 80:8080 -d httpd - This command will start a new container based on the httpd image, with a port binding of 8080 in the container to port 80 on the host. The -d flag runs the container in detached mode, meaning it will run in the background and not block the terminal.
1. docker pull httpd:latest - This command will download the latest version of the Apache web server Docker image from the Docker Hub.
2. docker run -p 80:8080 -d httpd - This command will start a new container based on the httpd image, with a port binding of 8080 in the container to port 80 on the host. The -d flag runs the container in detached mode, meaning it will run in the background and not block the terminal.
by Georgia at Apr 25, 2025, 03:07 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).