Docker Community Forums

Share and learn in the Docker community.

Docker 17.03 on raspberry pi zero W

docker
raspberrypi

(Moneeb792) #1

I am trying to get docker v17.03.1 to run on raspberry pi zero W using the deb package here: https://download.docker.com/linux/debian/dists/jessie/pool/stable/armhf/. However, the install always fails as follows:
invoke-rc.d: initscript docker, action “start” failed.
dpkg: error processing package docker-ce (–install):
subprocess installed post-installation script returned error exit status 1

Systemctl shows the following:
pi@raspberrypi:~/Downloads $ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled)
Active: failed (Result: core-dump) since Thu 2017-06-01 13:14:44 UTC; 10s ago
Docs: https://docs.docker.com
Process: 5561 ExecStart=/usr/bin/dockerd -H fd:// (code=dumped, signal=ILL)
Main PID: 5561 (code=dumped, signal=ILL)

The install script at get.docker.com is able to install v17.05 perfectly. I am curious why my install fails.

I am running raspbian jessie on:
pi@raspberrypi:~/Downloads $ uname -a
Linux raspberrypi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux


(Peter Benjamin) #2

I haven’t experienced any problems following the official instructions.

TL;DR
Add docker repository to sources.list.d:

echo "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list

Update & Install:

sudo apt update && sudo apt install docker-ce -y

Verify:

pi@raspberrypi:~ $ sudo docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:24:07 2017
 OS/Arch:      linux/arm

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:18:32 2017
 OS/Arch:      linux/arm
 Experimental: false

(Hurzelpurzel) #3

I got a problem installing docker-ce on a fresh jessie desktop raspbian. It failed in dpkg for docker-ce. I found out that the sonic-pi package must be removed in order to get it work.
Maybe this hint help someone.


#4

I’m also struggling to install docker-ce onto RPi zero W with Raspbian Stretch. Is there an updated (2019) guide for ARMv6 install onto RPi zero?

Thanks for any guidance.
AB

BTW : The official instruction using script failed on two different RPi:-

● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Sun 2019-01-13 13:26:25 CET; 1min 7s ago
Docs: https://docs.docker.com
Process: 322 ExecStart=/usr/bin/dockerd -H unix:// (code=dumped, signal=SEGV)
Main PID: 322 (code=dumped, signal=SEGV)