Docker Community Forums

Share and learn in the Docker community.

Raspbian Stretch Installation Fails

Attempting to Install on Raspberry Pi ZeroW - my very first Docker attempt

System Information
lsb_release -a

No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch

uname -a

Linux raspberrypi 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l GNU/Linux

Installation
curl --silent -SL https://get.docker.com/ | sh

#Executing docker install script, commit: 6bf300318ebaab958c4adc341a8c7bb9f3a54a1a
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL “<gpgURL>” | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo “deb [arch=armhf] <downloadURL> stretch stable” > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n ]
+ 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)
root@raspberrypi:/home/pi# service docker status
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2019-08-07 04:50:41 BST; 1min 4s ago
Docs: <docsLink>
Process: 8495 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=killed, signal=TERM)
Main PID: 8495 (code=killed, signal=TERM)
CPU: 429ms

Aug 07 04:50:38 raspberrypi systemd[1]: Starting Docker Application Container Engine…
Aug 07 04:50:41 raspberrypi systemd[1]: Stopped Docker Application Container Engine.

To understand more about the error, I invoked the last command manually:
apt-get install -y -qq --no-install-recommends docker-ce

Setting up docker-ce (5:19.03.1~3-0~raspbian-stretch) …
Job for docker.service canceled.
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: inactive (dead) since Wed 2019-08-07 04:53:04 BST; 65ms ago
Docs: <docsLink>
Process: 9596 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=killed, signal=TERM)
Main PID: 9596 (code=killed, signal=TERM)
CPU: 360ms

Aug 07 04:53:03 raspberrypi systemd[1]: Starting Docker Application Container Engine…
Aug 07 04:53:04 raspberrypi systemd[1]: Stopped Docker Application Container Engine.
dpkg: error processing package docker-ce (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have not been able to find information to tell where to begin looking for where this error is coming from in order to troubleshoot.

invoke-rc.d: initscript docker, action "start" failed.

Your assistance is greatly appreciated!

Regards.

Mike

P.S. I replaced some of the URLs with a placeholders since I can’t post more than two links as a new user.

Same issue here!
Tried installing a fresh copy of raspbian stretch but no luck.

Very same error here, too.