Help us understand the problem. What is going on with this article?

Docker一括削除コマンドまとめ

More than 1 year has passed since last update.

停止コンテナ、タグ無しイメージ、未使用ボリューム、未使用ネットワーク一括削除

>=1.13

$ docker system prune

停止コンテナ一括削除

<=1.12

$ docker rm `docker ps -f "status=exited" -q`

>=1.13

$ docker container prune

全コンテナ一括削除

$ docker rm -f `docker ps -a -q`

未使用イメージ一括削除

<=1.12

$ docker rmi `docker images -q`

>=1.13

$ docker image prune

タグ無しイメージ一括削除

$ docker rmi `docker images -f "dangling=true" -q`

未使用ボリューム一括削除

<=1.12

$ docker volume rm `docker volume ls -q`

>=1.13

$ docker volume prune

未使用ネットワーク一括削除

<=1.12

$ docker network rm `docker network ls -q`

>=1.13

$ docker network prune
boiyama
平日はソフトウェアエンジニア。休日はPTA役員。
repro
世界59か国6,500以上の導入実績を持つCE(カスタマーエンゲージメント)プラットフォーム「Repro(リプロ)」を提供
https://repro.io/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした