Skip to content

Posts

Stop and Remove ALL Docker Containers and Images

June 18, 2018 • 1 min read

Stop and Remove ALL Docker Containers and Images

This is shamelessly stolen from The Humble Developer.

List All Containers

docker ps -a

Stop All Running Containers

docker stop $(docker ps -aq)

Remove All Containers

docker rm $(docker ps -aq)

Remove All Images

docker rmi $(docker images -q)

Author: Chuck Conway specializes in software engineering and Generative AI. Connect with him on social media: X (@chuckconway) or visit him on YouTube.

↑ Back to top

You may also like