Exroot & docker, lack of memory SWAP USB drive

I installed exroot as per this link on a 64GB thumbdrive and it is working as it is supposed to.

I want to have several docker containers and install openhab next to home assistant home automation system to see which one suits me better.

The other container I would like to set up is pihole.

This is the problem that I am running into though: should I actuvate swap on the USB drive?

root@OpenWrt:/overlay/docker# docker pull openhab/openhab
Using default tag: latest
latest: Pulling from openhab/openhab
5b16029f28c4: Pull complete
ac33209138cf: Downloading  141.8MB/141.8MB
10a94778d669: Download complete
78ff81ff18c9: Download complete
da995ea8f3eb: Download complete
4f4fb700ef54: Download complete
a740ef4fb6b4: Download complete
write /tmp/lib/docker/tmp/GetImageBlob2542974167: no space left on device
root@OpenWrt:/overlay/docker#

so I set up SWAP as per in the link:

root@OpenWrt:/overlay/docker# mkswap ${DIR}/swap
Setting up swapspace version 1, size = 104853504 bytes
root@OpenWrt:/overlay/docker# uci -q delete fstab.swap
root@OpenWrt:/overlay/docker# uci set fstab.swap="swap"
root@OpenWrt:/overlay/docker# uci set fstab.swap.device="${DIR}/swap"
root@OpenWrt:/overlay/docker# uci commit fstab
root@OpenWrt:/overlay/docker# service fstab boot
root@OpenWrt:/overlay/docker# cat /proc/swaps
Filename                                Type            Size            Used   P                            riority
/overlay/swap                           file            102396          0      -                            2

and I am just trying again:

root@OpenWrt:/overlay/docker# docker pull openhab/openhab

I will keep updating whether or not that has worked. I just copied and pasted and didn't look at the SWAP size, which is only 100MB.
How do I increase that?

Is constant read & write on a USB drive not wearing it out excessively?

How do I create several container and install

  • openhub
  • home assistant
  • pihole
    ?

It still seems that it installed docker onto the memory of the device and not onto the USB drive, or am I mistaken?

/tmp is your RAM.

soft link /tmp/lib/docker to your overlay.

thank you. It is just that I am not that experienced with these kind of things.
can you please be more specific and explain what you mean by soft-link?

I tried again (before soft-linking) and got this message now:

root@OpenWrt:/overlay/docker# docker pull openhab/openhab
Using default tag: latest
latest: Pulling from openhab/openhab
5b16029f28c4: Downloading  281.8kB/26.58MB
5b16029f28c4: Pull complete
ac33209138cf: Downloading  141.8MB/141.8MB
78ff81ff18c9: Waiting
78ff81ff18c9: Download complete
da995ea8f3eb: Download complete
4f4fb700ef54: Download complete
a740ef4fb6b4: Download complete
write /tmp/lib/docker/tmp/GetImageBlob1341530416: no space left on device
root@OpenWrt:/overlay/docker# root@OpenWrt:/overlay/docker# docker pull openhab/openhab
-ash: root@OpenWrt:/overlay/docker#: not found
root@OpenWrt:/overlay/docker#

google "linux soft link folder".

it's the same error message, plus some C&P garbage.

thanks but that doesn't work:

root@OpenWrt:~# ln -s /webroot/home/httpd/test.com/index.php /home/vivek/index.p
hp
ln: /home/vivek/index.php: No such file or directory
root@OpenWrt:~# ln -s /tmp/lib/docker/tmp/GetImageBlob2542974167 /overlay/tmp/li
b/docker/tmp/GetImageBlob2542974167
ln: /overlay/tmp/lib/docker/tmp/GetImageBlob2542974167: No such file or directory

root@OpenWrt:/overlay# ln -s /tmp/lib/docker/tmp/GetImageBlob2542974167 /overlay
/tmp/GetImageBlob2542974167

I created the directories. but it is not downloadsing aynthing.


root@OpenWrt:/overlay# root@OpenWrt:~# ln -s /webroot/home/httpd/test.com/index.
php /home/vivek/index.p
-ash: root@OpenWrt:~#: not found
root@OpenWrt:/overlay# hp
-ash: hp: not found
root@OpenWrt:/overlay# ln: /home/vivek/index.php: No such file or directory
-ash: ln:: not found
root@OpenWrt:/overlay# root@OpenWrt:~# ln -s /tmp/lib/docker/tmp/GetImageBlob254
2974167 /overlay/tmp/li
-ash: root@OpenWrt:~#: not found
root@OpenWrt:/overlay# b/docker/tmp/GetImageBlob2542974167
-ash: b/docker/tmp/GetImageBlob2542974167: not found
root@OpenWrt:/overlay# ln: /overlay/tmp/lib/docker/tmp/GetImageBlob2542974167: N
o such file or directory
-ash: ln:: not found
root@OpenWrt:/overlay# mkdir /GetImageBlob2542974167:
root@OpenWrt:/overlay# ls
docker      lost+found  tmp         work
etc         swap        upper
root@OpenWrt:/overlay# ln -s /tmp/lib/docker/tmp/GetImageBlob2542974167 /overlay
/tmp/GetImageBlob2542974167
root@OpenWrt:/overlay# ls -l
drwx--x---   13 root     root          4096 May  2 11:48 docker
drwxr-xr-x    2 root     root          4096 Jan  1  1970 etc
drwx------    2 root     root         16384 Apr 30 05:31 lost+found
-rw-r--r--    1 root     root     104857600 Apr 30 11:32 swap
drwxr-xr-x    2 root     root          4096 May  3 01:42 tmp
drwxr-xr-x   13 root     root          4096 May  3 01:41 upper
drwxr-xr-x    3 root     root          4096 Jan  1  1970 work
root@OpenWrt:/overlay# root@OpenWrt:/overlay# ln -s /tmp/lib/docker/tmp/GetImage
Blob2542974167 /overlay
-ash: root@OpenWrt:/overlay#: not found
root@OpenWrt:/overlay# /tmp/GetImageBlob2542974167
-ash: /tmp/GetImageBlob2542974167: not found
root@OpenWrt:/overlay# docker pull openhab/openhab
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
root@OpenWrt:/overlay# /etc/init.d/dockerd start
root@OpenWrt:/overlay# docker pull openhab/openhab
Using default tag: latest
latest: Pulling from openhab/openhab

Not the folder you were told to soft link, but hey, you're getting there...

yes thats what you suggested, I did it and it doesn't work.
Can you or someone else help so that I can move forward with my project please?
I am trying to get my docker working and it is something new to me.
I just need help to move forward with my docker, I don't need to be left in the rain.
Isn't that what the forum is for? Also I am not trying to be on the development team for the next openwrt release.
I can just use my raspberry if this leads to nowhere but wanted to spare this for other things.
but hey, what can I do?

no you didn't.

ln -s /tmp/lib/docker/tmp/GetImageBlob2542974167 /overlay

<>

soft link /tmp/lib/docker to your overlay.

spoon feeding people ? not really ...