Which of the following best explains why using a containerized Nginx server makes deployment easier?
Think about how containers include everything needed to run an app.
Containers bundle Nginx and all its dependencies, so it runs the same way everywhere. This avoids setup differences and makes deployment simple and reliable.
What is the output of the command docker ps --filter "ancestor=nginx" --format "{{.Status}}" right after starting an Nginx container?
Think about what status a running container shows.
The command shows containers running from the Nginx image. Right after starting, the status is 'Up' with the time running.
Which Dockerfile snippet correctly sets up a containerized Nginx server serving static files from /usr/share/nginx/html?
Look for the official Nginx image and correct file paths.
Option B uses the official Nginx image, copies static files to the right directory, and exposes port 80, which is standard for HTTP.
Arrange the steps in the correct order to deploy a containerized Nginx server serving your website.
Think about preparing files before building and running the container.
You first prepare your website files, then write the Dockerfile, build the image, and finally run the container.
You try to run an Nginx container with docker run -p 80:80 nginx but get an error that port 80 is already in use. What is the best way to fix this?
Think about what causes port conflicts on the host machine.
The error means port 80 on your computer is busy. You can stop that process or map container port 80 to a free host port like 8080.