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?

More than 1 year has passed since last update.

[Docker] 備忘録:全てのコンテナ、イメージ、ボリュームを削除する方法

Posted at

はじめに

業務でDockerのコンテナやイメージを全て削除することが多々あるのですが、毎回調べるのも疲れるので備忘録として残しておく〜。

全てのコンテナを削除

docker rm -vf $(docker ps -aq)

全てのイメージを削除

docker rmi -f $(docker images -aq)

全てのボリュームを削除

docker volume rm $(docker volume ls -q)

キャッシュの削除

docker system prune -a
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?