docker remove all volumes and images code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: remove docker volume
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
Example 3: docker remove all containers and images
docker container stop $(docker container ls -aq)