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 3 years have passed since last update.

ローカルのdockerImageが多くなりすぎてヤバいので一括削除する

Last updated at Posted at 2020-05-03

MacのDockerは何やらその中で利用できる容量が決まっているらしく(PCのディスクとは別)
結構頻繁にいっぱいになる。
image作ってる途中にこんなエラーが出て悲しい。

Error processing tar file(exit status 1): 
write /home/vmagent/app/dist/static/js/app.f321c198c91fde51a686.js: no space left on device

お掃除。多分こういうことになる人は、あるプロジェクトで頻繁にイメージを作ってる人だと思うので
イメージ名が代替固まってるんじゃないかなーと予想。
そんな人に送るこんなコマンドで一括やっつけちゃいましょう。

 docker rmi `docker images | grep XXXXX | awk -F' ' '{print $3}'`
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?