Complete the command to restart a Docker container named 'webapp'.
docker container [1] webappThe restart command stops and then starts the container again.
Complete the command to restart all running Docker containers.
docker ps -q | xargs docker [1]This command restarts all containers listed by docker ps -q, which shows container IDs.
Fix the error in the command to restart a container with ID 'abc123'.
docker container [1] abc123The correct command to restart a container is docker container restart.
Fill both blanks to restart all containers that are currently stopped.
docker ps -a -f status=[1] -q | xargs docker [2]
The filter status=exited selects stopped containers, and start starts them again.
Fill all three blanks to restart containers with names starting with 'db'.
docker ps -a --filter name=[1] -q | xargs docker [2] [3]
The filter name="^db" selects containers whose names start with 'db'. The restart command restarts them with a 5-second timeout.