Docker-CE need updating for raspbian buster
- [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
@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)
thanks @caio
It sure does work now, thanks :)
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
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
It worked with @caio 's way.
please report which device you use.
RPi 3 Model B (not plus).
@caio 's way worked for me as well on a Raspberry Pi 3b (not plus)
Now i am just waiting for my Pi4 4gb :)
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.
@caio that works on my Pi4, thanks :)
@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
Is there no way to success on pi0?
sudo apt-get install --no-install-recommends docker-ce docker-ce-cli containerd.io
This very helpfull on Rpi4 rasbian buster
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
Update. I get it to install but it throws another error about net_prio. Hopefully there will be a release for buster soon
@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.
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
curl -sL get.docker.com | sed 's/9)/10)/' | sh
Works in Pi4 as well :)
Will docker work if installed before dist-upgrade (apt.list with stretch)?
Thanks in advance.
Nightly builds are now available for raspbian buster; https://download.docker.com/linux/raspbian/dists/buster/pool/nightly/armhf/