DEV Community


👾 Monster kill on all containers from docker

wakeupmh profile image Marcos Henrique ・1 min read

After few hours playing with docker basics, I'm front of the necessity to kill all of my container like another newbie on something used the scratch (go horse) way ONE by ONE 😱

docker rm c582332ca41c #container_id
docker stop c582332ca41c #container_id
Enter fullscreen mode Exit fullscreen mode

Best way to 🔪💀 containers

You'll need 3 pounds of plutonium for our yellow cake ☢️
hold on, I'm just kidding 🤣
Nothing much just our good old terminal

docker rm $(docker ps -aq)
# is the same for stopping command
docker stop $(docker ps -aq)
Enter fullscreen mode Exit fullscreen mode
  • -a: list all container
  • -q: quite mode


Editor guide