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
Leave a Reply
You must be logged in to post a comment.