Complete the command to run a Docker container in detached mode.
docker run [1] nginxThe -d flag runs the container in detached mode, meaning it runs in the background.
Complete the command to run a container named 'webapp' in detached mode.
docker run [1] --name webapp nginxThe -d flag runs the container in detached mode, allowing it to run in the background with the given name.
Fix the error in the command to run a container in detached mode.
docker run nginx [1]The -d flag must come before the image name to run the container detached.
Fill both blanks to run a container in detached mode and map port 8080 on the host to 80 in the container.
docker run [1] -p [2]:80 nginx
Use -d to run detached and -p 8080:80 to map host port 8080 to container port 80.
Fill all three blanks to run a container detached, name it 'db', and map port 3306 on the host to 3306 in the container.
docker run [1] --name [2] -p [3]:3306 mysql
Use -d for detached mode, --name db to name the container, and -p 3306:3306 to map the port.