1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker環境を初期化し隊(全部ぶっ壊しコマンド)

Posted at

docker system pruneだと停止されてるやつしか消えないので、
先にdocker stop $(docker ps -q)で動いてる全てのコンテナ停止してあげる

docker全部ぶっ壊しコマンド

docker stop $(docker ps -q) && docker rm $(docker ps -q -a) && docker rmi $(docker images -q) && docker network prune

これより:frowning2:

docker stop $(docker ps -q) && docker system prune -a

の方が短い気がしてきた:relaxed:

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?