Docker reference

Docker reference

Stop and remove all containers.

1
2
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)

Remove all images

1
docker rmi $(docker images -a -q)

Remove all dangling images

1
docker rmi $(docker images -a -f dangling=true)

Attach to a running container to debug the container.

1
docker attach {container_id}
Share