Docker commands

Containers

Show running containers

docker ps

Show all containers

docker ps -a

Docker start container

docker start xxx

Docker stop container

docker stop xxx

Docker restart container

docker restart xxx

Docker remove container

docker rm xxx

Images

Show images

docker images

Remove images

docker rmi xxx

Volumes

List volumes

docker volume ls

Remove volume

docker volume rm xxx

Remove unused (dangling) volumes

docker volume ls -qf dangling=true | xargs -r docker volume rm

By Stefan

Leave a Reply

Your email address will not be published. Required fields are marked *