Community
OpenEnergyMonitor

Community

SD Free Space Issues with Docker

docker
homeassistant
Tags: #<Tag:0x00007f1be892f198> #<Tag:0x00007f1be892ed60>

(Sam) #1

So I am attempting to install Home Assistant in docker on a fresh install on my emonPi running June18 release on an 8GB card. Once image was loaded, I performed the required sudo emonSDexpand.

On attempting to load in the HA install with Docker, I am getting disk full errors. /dev/root is at 97% use. File system looks like this:

>[email protected](rw):/$ df -l
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        3491728 3202856    119784  97% /
devtmpfs          495480       0    495480   0% /dev
tmpfs             500088       0    500088   0% /dev/shm
tmpfs             500088   13028    487060   3% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             500088       0    500088   0% /sys/fs/cgroup
tmpfs              30720      32     30688   1% /tmp
tmpfs              51200   10828     40372  22% /var/log
tmpfs               1024       4      1020   1% /var/lib/dhcp
tmpfs              40960    6724     34236  17% /var/lib/openhab
tmpfs               1024       4      1020   1% /var/cache/unbound
tmpfs               5120       0      5120   0% /var/lib/php/sessions
tmpfs               1024       0      1024   0% /var/tmp
tmpfs               1024       4      1020   1% /var/lib/dhcpcd5
/dev/mmcblk0p1     61384   23600     37784  39% /boot
/dev/mmcblk0p3   3744932  129649   3421939   4% /home/pi/data
tmpfs             100016       0    100016   0% /run/user/1000

So, my question is how do I free up some more space to get this loaded or is there a trick to push docker/HA in to the /home/pi partition?

Thanks.


(Sam) #2

Seem to have figured it out. Doubled the googling efforts.

I changed Docker’s storage base directory (where container and images go) using the method outlined here: https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux

Now have HA running through Docker with plenty of space. :+1: