Jason Meridth's Blog Learn, Converse, Share

Stop and Remove All Docker Containers

Command remove all docker containers:

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

docker ps -a -q lists all container IDs

Have feedback on this post? Let @jmeridth know on Twitter.