Skip to content

Tags

On this page

Docker Common Commands

docker compose exec bin

docker-compose exec service-name /bin/sh

Stop All contains and remove

sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)

Clean all

sudo docker system prune --volumes
sudo docker image prune -a
Edit this page
Last updated on 11/22/2021