DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 964,423 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. 🛠