My notepad

Chris' IT notes…
← Back

Docker basic commands

Check containers

sh
# docker ps -a

Connect to a container

sh
# docker start <ID>
# docker attach <ID>

Exit from a container

sh
-> type 'exit'

Remove all of Docker containers:

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