Complete the command to list all running Docker containers.
docker [1]The docker ps command lists all running containers.
Complete the command to show detailed information about a container named 'webapp'.
docker container [1] webappThe docker container inspect command shows detailed info about a container.
Fix the error in the command to get the IP address of a container named 'db'. Fill the missing option.
docker inspect --format='{{.NetworkSettings.IPAddress}}' [1]
The last argument should be the container name or ID, here 'db'.
Fill both blanks to create a command that shows the logs of a container named 'api' and follows new output.
docker logs [1] [2]
The container name 'api' is needed, and --follow makes logs stream new output.
Fill all three blanks to create a command that inspects a container named 'cache' and formats output to show only its state status.
docker inspect --format='{{.[1].[2]' [3]
The format string accesses .State.Status of the container named 'cache'.