EC2上にVSCodeでつないで開発をしているが、先日 `docker build` が出来なくなってしまった。
原因は容量不足だったので、以下のコマンドでDockerのキャッシュなどをまとめて削除した。
$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 45 10 16.39GB 12.35GB (75%)
Containers 15 2 611.2MB 610.9MB (99%)
Local Volumes 16 3 1.876GB 1.352GB (72%)
Build Cache 317 0 465.1MB 465.1MB
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Zennの記事に感謝
コメント