Articles → DOCKER → Commands For Deleting The Container And The Docker Image
Commands For Deleting The Container And The Docker Image
Prerequisite
Deleting The Container
docker stop <container Id>
docker stop `docker ps -q`
docker rm `docker ps -a -q`
Deleting The Image
docker rmi `docker images -q -a`