I’ve searched all over for this question and it seems a common problem is that a docker host runs out of disk space. My docker host has plenty of space but my container claims the ‘device is out of space’
Results of df -h:
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.6G 3.8M 1.6G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 2.1T 1.7T 321G 84% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p2 2.0G 254M 1.6G 14% /boot
/dev/nvme0n1p1 1.1G 45M 1.1G 5% /boot/efi
tmpfs 1.6G 4.0K 1.6G 1% /run/user/1000
I get the out of space error when I try to pip install a python package inside a container. It fails on the downloading stage. This is the error:
OSError: [Errno 28] No space left on device
Here is the df -h from inside the container:
Filesystem Size Used Avail Use% Mounted on
overlay 2.1T 1.7T 321G 84% /
tmpfs 64M 0 64M 0% /dev
shm 64M 276K 64M 1% /dev/shm
/dev/mapper/ubuntu--vg-ubuntu--lv 2.1T 1.7T 321G 84% /certs
tmpfs 7.8G 0 7.8G 0% /proc/asound
tmpfs 7.8G 0 7.8G 0% /proc/acpi
tmpfs 7.8G 0 7.8G 0% /proc/scsi
tmpfs 7.8G 0 7.8G 0% /sys/firmware
tmpfs 7.8G 0 7.8G 0% /sys/devices/virtual/powercap
Tried pip install xxx
I expected it to install without errors
Instead I got OSError: [Errno 28] No space left on device