LoginSignup
3
1

More than 1 year has passed since last update.

mac で docker build時に `ENOSPC: no space left on device` エラー

Posted at

表題のエラーだが、dfコマンドを叩いたところ、特に圧迫しているものはなさそう。
(devfs はディスクではなくUNIXデバイスだとか。)

$ df
Filesystem     512-blocks      Used Available Capacity iused      ifree %iused  Mounted on
/dev/disk1s1s1  976490576  29904472 623318552     5%  553757 4881899123    0%   /
devfs                 378       378         0   100%     654          0  100%   /dev
/dev/disk1s5    976490576   8388664 623318552     2%       4 4882452876    0%   /System/Volumes/VM
/dev/disk1s3    976490576    559608 623318552     1%     814 4882452066    0%   /System/Volumes/Preboot
/dev/disk1s6    976490576       768 623318552     1%      16 4882452864    0%   /System/Volumes/Update
/dev/disk1s2    976490576 312792088 623318552    34% 3207456 4879245424    0%   /System/Volumes/Data
map auto_home           0         0         0   100%       0          0  100%   /System/Volumes/Data/home
map -fstab              0         0         0   100%       0          0  100%   /System/Volumes/Data/Network/Servers

以下のコマンドで、コンテナがいっぱいだったことがわかった。
66MB、少ない気もするが、使ってないコンテナを削除する。

$ docker system df
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          19        14        10.76GB   2.779GB (25%)
Containers      19        0         66.49MB   66.49MB (100%)
Local Volumes   15        14        3.021GB   0B (0%)
Build Cache     227       0         11.8GB    11.8GB

ちなみに、dockerの容量確認する前にimageの容量増やしてしまったんだが、減らそうとするとimageとvolume全部消すよって言われたから、増やすときは気をつけて。(別に消してもいいんだけど。)

Disk utilization in Docker for Mac | Docker Documentation

3
1
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
3
1