I’m putting together a docker image build on a Jetson Xavier, but I’ve been running into space issues after only a few apt-gets. The SD card I’m using has 128 GB of space available, but for some reason my docker /dev/root and overlay file systems are restricted to 22 GB, and fill up fast.
I’ve been looking for a way to expand the default storage available to a docker image.
When I run “df -H”, on a fresh container, I get the following:
Filesystem Size Used Avail Use% Mounted on
overlay 22G 17G 3.8G 82% /
tmpfs 68M 0 68M 0% /dev
tmpfs 4.1G 0 4.1G 0% /sys/fs/cgroup
shm 68M 0 68M 0% /dev/shm
/dev/mmcblk0p12 104G 13G 87G 13% /mnt
/dev/root 22G 17G 3.8G 82% /etc/hosts
tmpfs 4.1G 0 4.1G 0% /etc/nvidia/nvidia-application-profiles-rc.d
devtmpfs 3.7G 0 3.7G 0% /dev/fb0
tmpfs 4.1G 0 4.1G 0% /proc/asound
tmpfs 4.1G 0 4.1G 0% /sys/firmware
I’m using overlay2, which should resize according to the system requirements, but so far it has not.
The devicemapper options in the docker documentation here seemed promising, but I couldn’t get any of them to work.
Any help would be much appreciated!