for-linux icon indicating copy to clipboard operation
for-linux copied to clipboard

Docker-CE need updating for raspbian buster

Open nlt6444 opened this issue 7 years ago • 138 comments

  • [x] This is a bug report
  • [ ] This is a feature request
  • [ x] I searched existing issues before opening this one

Expected behavior

Successful install

Actual behavior

Docker-CE is unavailable for raspbian buster. I would to request an update to the application.

Steps to reproduce the behavior

Install the following prerequisites.

sudo apt-get install apt-transport-https ca-certificates software-properties-common -y b. Download and install Docker.

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh c. Give the ‘pi’ user the ability to run Docker.

sudo usermod -aG docker pi d. Import Docker CPG key.

sudo curl https://download.docker.com/linux/raspbian/gpg e. Setup the Docker Repo.

vim /etc/apt/sources.list Add the following line and save:

deb https://download.docker.com/linux/raspbian/ stretch stable

nlt6444 avatar Jun 26 '19 22:06 nlt6444

@lowdef & @theDiverDK - The error you are getting is because the script is resuming from a partial state. If you drop the repository config, the curl|sed|sh workaround you're trying should work:

sudo rm /etc/apt/sources.list.d/docker.list;
curl -sL get.docker.com | sed 's/9)/10)/' | sh

(Or just adjust the file to point to stretch instead of 10, as mentioned @ https://github.com/docker/for-linux/issues/709#issuecomment-506981764)

caio avatar Jun 30 '19 16:06 caio

thanks @caio

It sure does work now, thanks :)

theDiverDK avatar Jun 30 '19 16:06 theDiverDK

I got it installed without problems by downloading the most recent .deb files for containerd.io, docker-ce-cli and docker-ce from here https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/ and installing them in that order with sudo dpkg -i <deb-file>

System: Raspberry PI 4 Latest Raspbian Buster deb files: containerd.io_1.2.6-3_armhf.deb docker-ce_18.09.7~3-0~debian-buster_armhf.deb docker-ce-cli_18.09.7~3-0~debian-buster_armhf.deb

brtwrst avatar Jun 30 '19 16:06 brtwrst

Following the manual instructions and using the latest edge instead of stable works for me on buster https://docs.docker.com/install/linux/docker-ce/binaries/#install-daemon-and-client-binaries-on-linux

d11wtq avatar Jul 01 '19 22:07 d11wtq

It worked with @caio 's way.

sirius1024 avatar Jul 03 '19 06:07 sirius1024

please report which device you use.

notogawa avatar Jul 03 '19 06:07 notogawa

RPi 3 Model B (not plus).

sirius1024 avatar Jul 03 '19 06:07 sirius1024

@caio 's way worked for me as well on a Raspberry Pi 3b (not plus)

Now i am just waiting for my Pi4 4gb :)

theDiverDK avatar Jul 03 '19 07:07 theDiverDK

I installed docker-ce on raspberry pi 3B+, raspbian buster, by manually adding /etc/apt/sources.list.d/docker-ce.list:

deb https://download.docker.com/linux/debian buster stable
deb-src https://download.docker.com/linux/debian buster stable

and adding the key using add-key https://download.docker.com/linux/debian/gpg.

Then apt update && apt install -y —no-install-recommends docker-ce docker-ce-cli containerd.io works for me.

Emitting —no-install-recommends will cause aufs-dkms to be installed of which the compilation failed for me.

NobodyXu avatar Jul 03 '19 08:07 NobodyXu

@caio that works on my Pi4, thanks :)

biodrone avatar Jul 03 '19 12:07 biodrone

@NobodyXu 's solution worked for me.

I just followed the instructions from docker.com for arch=armhf, except that I added the option --no-install-recommends:

$ sudo apt-get install --no-install-recommends docker-ce docker-ce-cli containerd.io

sebns avatar Jul 03 '19 18:07 sebns

Is there no way to success on pi0?

notogawa avatar Jul 03 '19 23:07 notogawa

sudo apt-get install --no-install-recommends docker-ce docker-ce-cli containerd.io

This very helpfull on Rpi4 rasbian buster

GrzegorzW11 avatar Jul 04 '19 18:07 GrzegorzW11

I got it running with:

sudo apt-get install docker-ce=18.06.1~ce~3-0~raspbian

but then docker-cli was not installed and installing docker-ce-cli removes this version of docker-ce. in a nutshell this is what i did to get it running

add this line

pi@raspberrypi:~ $ sudo cat /etc/apt/sources.list.d/docker.list
deb [arch=armhf] https://download.docker.com/linux/raspbian stretch edge

then the following in this order

sudo apt-get install docker-ce=18.06.1~ce~3-0~raspbian
sudo apt-get install docker-ce-cli
apt-get download docker-ce=18.06.1~ce~3-0~raspbian
sudo dpkg -i docker-ce_18.06.1~ce~3-0~raspbian_armhf.deb

first install docker then latest version of the cli which overwrites the version of doker-ce installing v.18.06.1 again overwrites the cli tool so i downloaded the package manually and then installed with dpkg.

and now i have a working docker with no errors of start failures

pi@raspberrypi:~ $ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.19.50+
Operating System: Raspbian GNU/Linux 10 (buster)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 432.7MiB
Name: raspberrypi
ID: PM6D:UG7E:OJ7F:EEW5:7AYK:QS5E:GZOA:DAV6:GBTR:5B5I:IQOA:MVU7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support

SiM22 avatar Jul 05 '19 08:07 SiM22

Update. I get it to install but it throws another error about net_prio. Hopefully there will be a release for buster soon

SiM22 avatar Jul 06 '19 00:07 SiM22

@SiM22 DId you forget to also install containerd.io? If I recalled right, that is the actual backend docker used to create container. It manipulate namespace, do the mounting kind of stuff.

Edit:

If you use apt cache show docker, you will find out that docker depends on containerd.io.

NobodyXu avatar Jul 07 '19 08:07 NobodyXu

related issues and PR's;

  • https://github.com/moby/moby/issues/39417 Is 'docker' available via curl script for Buster / Debian 10?
  • https://github.com/docker/docker-ce-packaging/pull/349 Add Raspbian buster
  • https://github.com/docker/docker-install/pull/126 Add support for Debian Buster
  • https://github.com/docker/docker-ce-packaging/pull/361 [19.03 backport] Add Raspbian buster

thaJeztah avatar Jul 08 '19 15:07 thaJeztah

curl -sL get.docker.com | sed 's/9)/10)/' | sh

Works in Pi4 as well :)

theDiverDK avatar Jul 09 '19 09:07 theDiverDK

Will docker work if installed before dist-upgrade (apt.list with stretch)?

Thanks in advance.

logopk avatar Jul 09 '19 14:07 logopk

Nightly builds are now available for raspbian buster; https://download.docker.com/linux/raspbian/dists/buster/pool/nightly/armhf/

thaJeztah avatar Jul 09 '19 21:07 thaJeztah