Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 280 Bytes

docker.md

File metadata and controls

14 lines (11 loc) · 280 Bytes

Docker

Stop and remove all containers even if they're not running

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

Exec bash / sh in a running container

docker exec -it container-id /bin/sh 
docker exec -it container-id /bin/bash