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?

docker コンテナ内でnpm install中、「npm warn tar TAR_ENTRY_ERROR ENOSPC: no space left on device, write」が出たら

Posted at

結論

「no space left on device, write」とある通り、Docker が使える領域の不足が原因。
Docker 関連の不要データを削除して対応する。

手順

1. 実行中のコンテナを全停止

docker stop $(docker ps -aq)

2. 未使用のコンテナ、イメージ、ネットワーク、ボリュームを削除

docker system prune -af --volumes
  • -a:未使用イメージ含むすべて削除
  • -f:確認プロンプトなしで削除
  • --volumes:未使用ボリュームも削除

おまけ

45GBも溜まってた、たまには掃除しよう

Deleted build cache objects:
ua4vhqvsp2d7llxv4q0qrh100
6smib8bz6fb3wyixxfq35czee
....
zahxlctv5hl0vo802d6r4h0w6

Total reclaimed space: 44.91GB
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?