Содержание
  1. Containers
    1. Stop all the containers
    2. Remove all the containers
    3. System prune

Containers

Stop all the containers

docker stop $(docker ps -a -q)

Remove all the containers

docker rm $(docker ps -a -q)

System prune

WARNING! This will remove:

  • all stopped containers
  • all networks not used by at least one container
  • all dangling images
  • unused build cache
    docker system prune