<div dir="ltr"><div>With more and more projects abandoning APT as the advocated way for distributing software, managing dependencies, and updates, it seems that Docker with image blobs is what most developers today know best.</div><div><br></div><div>So I wanted to install Home Assistance as a docker image, and the process is simple. But before that I need docker installed. <br></div><div><br></div><div>I tried to install it two ways: from the Raspian repositories, or using Docker's repos:</div><div><br></div><div>Both fail with an error about overlay. <br></div><div><br></div><div>My questions are:</div><div>1. Can this be fixed easily?</div><div>2. If not, is there an alternative (podman, lxc, ...) that can run docker images?</div><div><br></div><div>Thanks in advance. <br></div><div><br></div><div>Details follow:</div><div><br></div><div><br></div><div>From Raspbian repo:<br></div>$ sudo apt install <a href="http://docker.io">docker.io</a><br>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done<br>The following additional packages will be installed:<br>  cgroupfs-mount libintl-perl libintl-xs-perl libmodule-find-perl libmodule-scandeps-perl libproc-processtable-perl libsort-naturally-perl<br>  needrestart runc tini<br>Suggested packages:<br>  docker-doc aufs-tools btrfs-progs debootstrap rinse xfsprogs zfs-fuse | zfsutils iucode-tool<br>The following NEW packages will be installed:<br>  cgroupfs-mount <a href="http://docker.io">docker.io</a> libintl-perl libintl-xs-perl libmodule-find-perl libmodule-scandeps-perl libproc-processtable-perl<br>  libsort-naturally-perl needrestart runc tini<br>0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.<br>Need to get 41.8 MB of archives.<br>After this operation, 183 MB of additional disk space will be used.<br>Do you want to continue? [Y/n]<br>Get:1 <a href="http://archive.raspberrypi.org/debian">http://archive.raspberrypi.org/debian</a> buster/main armhf <a href="http://docker.io">docker.io</a> armhf 18.09.1+dfsg1-7.1+rpi1+rpt1 [38.4 MB]<br>Get:2 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf cgroupfs-mount all 1.4 [6276 B]<br>Get:3 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf runc armhf 1.0.0~rc6+dfsg1-3 [2246 kB]<br>Get:4 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf tini armhf 0.18.0-1 [169 kB]                          <br>Get:5 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libintl-perl all 1.26-2 [756 kB]<br>Get:6 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libintl-xs-perl armhf 1.26-2+b3 [38.8 kB]                       <br>Get:7 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libmodule-find-perl all 0.13-1 [10.3 kB]                             <br>Get:8 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libmodule-scandeps-perl all 1.27-1 [44.0 kB]                             <br>Get:9 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libproc-processtable-perl armhf 0.56-1 [43.7 kB]                           <br>Get:10 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf libsort-naturally-perl all 1.03-2 [13.5 kB]                               <br>Get:11 <a href="http://raspbian.freemirror.org/raspbian">http://raspbian.freemirror.org/raspbian</a> buster/main armhf needrestart all 3.4-5 [57.4 kB]                                           <br>Fetched 41.8 MB in 5s (7613 kB/s)                                   <br>Selecting previously unselected package cgroupfs-mount.<br>(Reading database ... 148496 files and directories currently installed.)<br>Preparing to unpack .../00-cgroupfs-mount_1.4_all.deb ...<br>Unpacking cgroupfs-mount (1.4) ...<br>Selecting previously unselected package runc.<br>Preparing to unpack .../01-runc_1.0.0~rc6+dfsg1-3_armhf.deb ...<br>Unpacking runc (1.0.0~rc6+dfsg1-3) ...<br>Selecting previously unselected package tini.<br>Preparing to unpack .../02-tini_0.18.0-1_armhf.deb ...<br>Unpacking tini (0.18.0-1) ...<br>Selecting previously unselected package <a href="http://docker.io">docker.io</a>.<br>Preparing to unpack .../03-docker.io_18.09.1+dfsg1-7.1+rpi1+rpt1_armhf.deb ...<br>Unpacking <a href="http://docker.io">docker.io</a> (18.09.1+dfsg1-7.1+rpi1+rpt1) ...<br>Selecting previously unselected package libintl-perl.<br>Preparing to unpack .../04-libintl-perl_1.26-2_all.deb ...<br>Unpacking libintl-perl (1.26-2) ...<br>Selecting previously unselected package libintl-xs-perl.<br>Preparing to unpack .../05-libintl-xs-perl_1.26-2+b3_armhf.deb ...<br>Unpacking libintl-xs-perl (1.26-2+b3) ...<br>Selecting previously unselected package libmodule-find-perl.<br>Preparing to unpack .../06-libmodule-find-perl_0.13-1_all.deb ...<br>Unpacking libmodule-find-perl (0.13-1) ...<br>Selecting previously unselected package libmodule-scandeps-perl.<br>Preparing to unpack .../07-libmodule-scandeps-perl_1.27-1_all.deb ...<br>Unpacking libmodule-scandeps-perl (1.27-1) ...<br>Selecting previously unselected package libproc-processtable-perl.<br>Preparing to unpack .../08-libproc-processtable-perl_0.56-1_armhf.deb ...<br>Unpacking libproc-processtable-perl (0.56-1) ...<br>Selecting previously unselected package libsort-naturally-perl.<br>Preparing to unpack .../09-libsort-naturally-perl_1.03-2_all.deb ...<br>Unpacking libsort-naturally-perl (1.03-2) ...<br>Selecting previously unselected package needrestart.<br>Preparing to unpack .../10-needrestart_3.4-5_all.deb ...<br>Unpacking needrestart (3.4-5) ...<br>Setting up runc (1.0.0~rc6+dfsg1-3) ...<br>Setting up libmodule-find-perl (0.13-1) ...<br>Setting up tini (0.18.0-1) ...<br>Setting up libproc-processtable-perl (0.56-1) ...<br>Setting up libintl-perl (1.26-2) ...<br>Setting up cgroupfs-mount (1.4) ...<br>Setting up libsort-naturally-perl (1.03-2) ...<br>Setting up libmodule-scandeps-perl (1.27-1) ...<br>Setting up needrestart (3.4-5) ...<br>Setting up <a href="http://docker.io">docker.io</a> (18.09.1+dfsg1-7.1+rpi1+rpt1) ...<br>Job for docker.service failed because the control process exited with error code.<br>See "systemctl status docker.service" and "journalctl -xe" for details.<br>invoke-rc.d: initscript docker, action "start" failed.<br>* docker.service - Docker Application Container Engine<br>   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)<br>   Active: activating (auto-restart) (Result: exit-code) since Tue 2021-05-04 15:56:00 EDT; 81ms ago<br>     Docs: <a href="https://docs.docker.com">https://docs.docker.com</a><br>  Process: 14997 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)<br> Main PID: 14997 (code=exited, status=1/FAILURE)<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.829556516-04:00" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/containerd.sock 0  <nil>}]" module=grpc<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.829875369-04:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc <br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.830402242-04:00" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x4e6c240, CONNECTING" module=grpc<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.831725466-04:00" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x4e6c240, READY" module=grpc<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.854267837-04:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded." storage-driver=overlay2<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.854737627-04:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.859882714-04:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.860127973-04:00" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.863350462-04:00" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x4e6c240, TRANSIENT_FAILURE" module=grpc<br>May 04 15:56:00 ha dockerd[15031]: time="2021-05-04T15:56:00.863622076-04:00" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x4e6c240, CONNECTING" module=grpc<br>dpkg: error processing package <a href="http://docker.io">docker.io</a> (--configure):<br> installed <a href="http://docker.io">docker.io</a> package post-installation script subprocess returned error exit status 1<br>Setting up libintl-xs-perl (1.26-2+b3) ...<br>Processing triggers for man-db (2.8.5-2) ...<br>Processing triggers for systemd (241-7~deb10u7+rpi1) ...<br>Errors were encountered while processing:<br> <a href="http://docker.io">docker.io</a><br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br><br>Trying to fix the above error failed:<br><br>Calculating upgrade... Done<br>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br>1 not fully installed or removed.<br>After this operation, 0 B of additional disk space will be used.<br>Do you want to continue? [Y/n]<br>Setting up <a href="http://docker.io">docker.io</a> (18.09.1+dfsg1-7.1+rpi1+rpt1) ...<br>Job for docker.service failed because the control process exited with error code.<br>See "systemctl status docker.service" and "journalctl -xe" for details.<br>invoke-rc.d: initscript docker, action "start" failed.<br>* docker.service - Docker Application Container Engine<br>   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)<br>   Active: activating (auto-restart) (Result: exit-code) since Tue 2021-05-04 18:28:21 EDT; 57ms ago<br>     Docs: <a href="https://docs.docker.com">https://docs.docker.com</a><br>  Process: 21930 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)<br> Main PID: 21930 (code=exited, status=1/FAILURE)<br>dpkg: error processing package <a href="http://docker.io">docker.io</a> (--configure):<br> installed <a href="http://docker.io">docker.io</a> package post-installation script subprocess returned error exit status 1<br>Errors were encountered while processing:<br> <a href="http://docker.io">docker.io</a><br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br><br><br>Then using docker's repositories:<br><br>$ curl -fsSL <a href="https://get.docker.com">https://get.docker.com</a> -o docker-script.sh<br><br>$ sudo sh docker-script.sh<br># Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737<br>+ sh -c apt-get update -qq >/dev/null<br>+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null<br>+ sh -c curl -fsSL "<a href="https://download.docker.com/linux/raspbian/gpg">https://download.docker.com/linux/raspbian/gpg</a>" | apt-key add -qq - >/dev/null<br>Warning: apt-key output should not be parsed (stdout is not a terminal)<br>+ sh -c echo "deb [arch=armhf] <a href="https://download.docker.com/linux/raspbian">https://download.docker.com/linux/raspbian</a> buster stable" > /etc/apt/sources.list.d/docker.list<br>+ sh -c apt-get update -qq >/dev/null<br>+ [ -n  ]<br>+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null<br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br><br>Again, trying to fix that error fails:<br>$ sudo dpkg --configure -a<br>Setting up docker-ce (5:20.10.6~3-0~raspbian-buster) ...<br>Job for docker.service failed because the control process exited with error code.<br>See "systemctl status docker.service" and "journalctl -xe" for details.<br>invoke-rc.d: initscript docker, action "start" failed.<br>* docker.service - Docker Application Container Engine<br>   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)<br>   Active: activating (auto-restart) (Result: exit-code) since Tue 2021-05-04 21:49:28 EDT; 59ms ago<br>     Docs: <a href="https://docs.docker.com">https://docs.docker.com</a><br>  Process: 30828 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)<br> Main PID: 30828 (code=exited, status=1/FAILURE)<br>dpkg: error processing package docker-ce (--configure):<br> installed docker-ce package post-installation script subprocess returned error exit status 1<br>Errors were encountered while processing:<br> docker-ce<br><br>The daemon.log file has the following errors:<br><br>May  4 21:54:42 ha dockerd[31316]: time="2021-05-04T21:54:42.544454629-04:00" level=error msg="failed to mount overlay: no such device" storage-driver=overlay2<br>May  4 21:54:42 ha dockerd[31316]: time="2021-05-04T21:54:42.544687076-04:00" level=error msg="exec: \"fuse-overlayfs\": executable file not found in $PATH" storage-driver=fuse-overlayfs<br>May  4 21:54:42 ha dockerd[31316]: time="2021-05-04T21:54:42.559568851-04:00" level=error msg="AUFS was not found in /proc/filesystems" storage-driver=aufs<br>May  4 21:54:42 ha dockerd[31316]: time="2021-05-04T21:54:42.579579046-04:00" level=error msg="failed to mount overlay: no such device" storage-driver=overlay<br>May  4 21:54:46 ha dockerd[31380]: time="2021-05-04T21:54:46.795365056-04:00" level=error msg="failed to mount overlay: no such device" storage-driver=overlay2<br>May  4 21:54:46 ha dockerd[31380]: time="2021-05-04T21:54:46.806656946-04:00" level=error msg="exec: \"fuse-overlayfs\": executable file not found in $PATH" storage-driver=fuse-overlayfs<br>May  4 21:54:46 ha dockerd[31380]: time="2021-05-04T21:54:46.839365954-04:00" level=error msg="AUFS was not found in /proc/filesystems" storage-driver=aufs<br>May  4 21:54:46 ha dockerd[31380]: time="2021-05-04T21:54:46.857892508-04:00" level=error msg="failed to mount overlay: no such device" storage-driver=overlay<br><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal performance optimization, hosting and consulting.<br>"Sooner or later, this combustible mixture of ignorance and power is going to blow up in our faces." -- Dr. Carl Sagan</div></div>