DEV Community

Marcos Henrique
Marcos Henrique

Posted on

๐Ÿ‘พ Monster kill on all containers from docker

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

Top comments (0)