Docker: Cleanup Task
You are given a machine with Docker installed. Your task is to fully clean the Docker environment using Docker CLI commands so that all of the following are removed:
-
All containers (
including running containers
)
-
All images
-
All volumes
Acceptance criteria
After your cleanup, the following commands should show no resources:
-
docker ps -a
-
docker images -a
-
docker volume ls
Notes
-
You may assume you have sufficient permissions to manage Docker resources.
-
The goal is correctness and completeness; prefer commands that work even when containers are running or resources have dependencies.