Trying to set up docker on my pi, getting errors I’m not sure what to do with. the generally recommended thing to do is to run the following:
$ curl -sSL https://get.docker.com | sh
But that script isn’t very informative error-wise; I’m getting the unhelpful:
sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I run that command directly from terminal:
$ curl -sSL https://get.docker.com | sh
About 80% through the installation I get the following troubling errors.
Building initial module for 4.19.66+
Error! Bad return status for module build on kernel: 4.19.66+ (armv7l)
Consult /var/lib/dkms/aufs/4.19+20190211/build/make.log for more information.
dpkg: error processing package aufs-dkms (--configure):
installed aufs-dkms package post-installation script subprocess returned error exit status 10
Setting up cgroupfs-mount (1.4) ...
Setting up docker-ce (5:19.03.2~3-0~raspbian-buster) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2019-09-18 19:15:09 CEST; 58ms ago
Docs: https://docs.docker.com
Process: 6231 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 6231 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u1+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
aufs-dkms
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m uncertain where to direct my questions, so if this is not the right place, please point me in some better direction.
Update: If I run sudo apt install docker.io
I get no errors in the install, but when I ran sudo systemctl enable docker && sudo systemctl start docker
I get the following:
pi@node00:~ $ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-09-18 19:50:48 CEST; 6min ago
Docs: https://docs.docker.com
Process: 11804 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
Main PID: 11804 (code=exited, status=1/FAILURE)
Sep 18 19:50:48 node00 systemd[1]: docker.service: Service RestartSec=100ms expired, scheduling restart.
Sep 18 19:50:48 node00 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Sep 18 19:50:48 node00 systemd[1]: Stopped Docker Application Container Engine.
Sep 18 19:50:48 node00 systemd[1]: docker.service: Start request repeated too quickly.
Sep 18 19:50:48
sudo apt install docker.io
).