I am using a persistent volume. While mounted in a container, I got an error message that there was no space left on the device. On inspection, the volume size was 256GB. However, there is much more room on the host.
Some further details: The docker storage driver is overlay2
. df
reveals that there is a filesystem /dev/mapper/vg1-docker
that is 256GB. During a download (over the internet) this filesystem became 100% full and docker
did not automatically resize the filesystem to make more space, even though there was much more space available on the host.
The host is native linux (ubuntu). Here is the output of df -i
:
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 24754746 429 24754317 1% /dev
tmpfs 24757974 762 24757212 1% /run
/dev/xvda2 6537216 142008 6395208 3% /
tmpfs 24757974 1 24757973 1% /dev/shm
tmpfs 24757974 3 24757971 1% /run/lock
tmpfs 24757974 18 24757956 1% /sys/fs/cgroup
/dev/mapper/vg1-docker 16384000 985506 15398494 7% /var/lib/docker
/dev/xvda1 65536 313 65223 1% /boot
tmpfs 24757974 10 24757964 1% /run/user/1001
I can't find any information on increasing the size of a docker volume.
Note this is not a duplicate of Why has Docker volume run out of space?.