Recall & Review
beginner
What command starts a Docker container that is already created but stopped?
Use
docker start <container_name_or_id> to start a stopped container.Click to reveal answer
beginner
How do you stop a running Docker container?
Use
docker stop <container_name_or_id> to stop a running container gracefully.Click to reveal answer
intermediate
What is the difference between
docker stop and docker kill?docker stop sends a signal to stop the container gracefully, allowing cleanup. docker kill forces the container to stop immediately.Click to reveal answer
beginner
How can you start a container and attach to its output in one command?
Use
docker run to start a new container and attach to its output immediately.Click to reveal answer
beginner
What command lists all running containers?
Use
docker ps to see all running containers.Click to reveal answer
Which command starts a stopped Docker container?
✗ Incorrect
docker start resumes a stopped container. docker run creates and starts a new container.
What does
docker stop do?✗ Incorrect
docker stop sends a signal to stop the container gracefully.
How do you see all running containers?
✗ Incorrect
docker ps lists all running containers.
Which command starts a new container and attaches to it immediately?
✗ Incorrect
docker run creates and starts a new container and attaches to its output.
What is the effect of
docker kill?✗ Incorrect
docker kill forces the container to stop immediately without cleanup.
Explain how to start and stop Docker containers using commands.
Think about commands to resume stopped containers and to stop running ones.
You got /4 concepts.
Describe the difference between
docker stop and docker kill.Consider how the container is stopped and if it has time to clean up.
You got /4 concepts.