Complete the code to start a Docker container using the official nginx image.
docker run --name mynginx [1]The nginx image is used to run an nginx web server container.
Complete the command to list all running Docker containers.
docker [1]docker ps shows all running containers.
Fix the error in the Dockerfile to copy files into the container.
FROM alpine
COPY [1] /app/The source path should be relative without trailing slash to copy the folder correctly.
Fill both blanks to run a container in detached mode and map port 8080 to 80.
docker run [1] -p [2]:80 nginx
-d runs the container detached (in background). -p 8080:80 maps host port 8080 to container port 80.
Fill all three blanks to build a Docker image named 'myapp' from the current directory with no cache.
docker build [1] -t [2] [3]
--no-cache disables cache during build, -t myapp tags the image, and . specifies the current directory as build context.