Complete the command to map port 8080 on the host to port 80 in the container.
docker run -d [1] nginxThe -p flag maps a specific host port to a container port. Here, -p 8080:80 maps host port 8080 to container port 80.
Complete the command to map host port 5000 to container port 5000.
docker run -d [1] myappThe -p 5000:5000 flag maps host port 5000 to container port 5000 explicitly.
Fix the error in the command to map host port 3000 to container port 3000.
docker run -d [1] 3000:3000 myapp
The correct flag to map ports is -p. It must be followed by a space before the port mapping.
Fill both blanks to map host port 8081 to container port 80 and host port 443 to container port 443.
docker run -d [1] [2] nginx
Use -p flag twice to map multiple ports: -p 8081:80 and -p 443:443.
Fill all three blanks to run a container mapping host ports 5000 and 6000 to container ports 5000 and 6000, and set environment variable ENV=prod.
docker run -d [1] [2] [3] ENV=prod myapp
Use -p twice for port mappings and -e to set environment variables.