You'll need to make sure all Docker containers are stopped and removed, after that you can remove the Docker images.
Stop and remove all docker containers and images:
- List all containers (only IDs)
docker ps -aq
.
- Stop all running containers.
docker stop $(docker ps -aq)
- Remove all containers.
docker rm $(docker ps -aq)
- Remove all images.
docker rmi $(docker images -q)
or docker image prune -a
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…