Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 616 Bytes

docker.md

File metadata and controls

47 lines (31 loc) · 616 Bytes

List all containers:

docker ps --all

Note: Remove --all option to only list containers that are running.

Stop all running containers:

docker stop $(docker ps -aq)

Remove all containers:

docker rm $(docker ps -aq)

List images (no intermediates):

docker images

Note: Add --all option to include intermediate images.

Remove all images:

docker rmi $(docker images -q)

Delete all unused volumes:

docker volume prune --force

Delete all unused networks:

docker network prune --force