Complete the command to list all running Docker containers.
docker [1]The docker ps command lists all running containers.
Complete the command to start a new container from the nginx image.
docker [1] nginxThe docker run command starts a new container from an image.
Fix the error in the command to stop a container named myapp.
docker [1] myappThe docker stop command stops a running container.
Fill both blanks to create a Dockerfile that uses Ubuntu and installs curl.
FROM [1] RUN apt-get update && apt-get install -y [2]
The base image is ubuntu and the package to install is curl.
Fill all three blanks to create a Docker command that runs a container in detached mode, names it webserver, and maps port 8080 to 80.
docker run [1] --name [2] -p [3]:80 nginx
Use -d for detached mode, name the container webserver, and map port 8080 on the host to port 80 in the container.
