0
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?

安全で確実な Docker 初期化手順(Windows PowerShell)

Posted at

① すべてのコンテナを停止

docker stop $(docker ps -aq)

② すべてのコンテナを削除

docker rm $(docker ps -aq)

③ 使っていたイメージを削除(強制でOK)

docker rmi -f $(docker images -q)

④ ボリューム(データ)も完全削除する場合

注意:n8n・postgres・qdrantのデータも全消去されます

docker volume rm $(docker volume ls -q)

⑤ ネットワークも初期化したい場合(任意)

※ 既存ネットワークを全部消す
(bridge, host, none は削除不可なのでエラー無視してOK)

docker network rm $(docker network ls -q)

🔥 これで Docker がほぼ “完全初期化” されます

確認するには:

docker ps -a
docker images
docker volume ls
docker network ls

全て 空に近い状態になります。


0
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
0
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?