51
45

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.

CONTAINERとIMAGEをまとめて削除

Last updated at Posted at 2013-12-24

CONTAINERをまとめて削除

docker ps -a | awk '{print $1}' | xargs docker rm

IMAGEをまとめて削除

docker images | awk '{print $3}' | xargs docker rmi

私のDocker環境自体vagrantで作成しているのでこれでなんの問題もありませんが、やるときは自己責任でお願いしますm(_ _)m

51
45
3

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
51
45

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?