Docker – Parar / Remover todos os containers Docker

Para todas as instâncias
docker stop $(docker ps -a -q)
Remove todas as instâncias
docker rm $(docker ps -a -q)
Para todas as imagens
docker image rm $(docker image ls -a -q)

Fonte: https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers

Facebook

Also published on Medium.

Deixe seu comentário

This site uses Akismet to reduce spam. Learn how your comment data is processed.