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
This is definitely a problem, because as noted in #545, the docker.io package in the default raspbian buster repo isn't working at all either.
Edit: Removing prior comment. I was an idiot. I mistakenly specified [arch=amd64] in /etc/apt/sources.list. I changed arch to armhf and docker-ce showed right up and installed properly.
Any updates on this?
Confirm, cant install on raspbian buster
Any way to manually install?
The docker packages are included in Raspbian buster by default.
You can install with sudo apt-get install docker.io docker-compose.
Restart after installation.
Update:
Although you can install docker and docker-compose, you get the error ERROR: for SERVICE_NAME Cannot start service SERVICE_NAME: unable to find "net_prio" in controller set: unknown when trying to start any image.
As described here this is because of an outdated version of containerd in the docker-io package.
I believe that the docker.io packages in the repo are not recommended by docker, according to the docker install instructions.
On 29 Jun 2019, at 18:50, Mark Lagendijk [email protected] wrote:
The docker packages are included in Raspbian buster by default. You can install with sudo apt-get install docker.io docker-compose.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Any way to manually install?
I manually edited the install script from get.docker.com to force it to download the stretch version of docker. Maybe give it a try?
@garyng how did it work out for you? All good with the containers?
@hminaya seems pretty stable ... for now
@garyng could you maybe share the the script? I'm not entirely sure what to edit in the script
Found a way to do it.
- Edit
/etc/apt/sources.list.d/docker.list - Change line to:
deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable
After that I'm able to use Docker
I confirm it works for now. Oneliner to install it on raspbian buster:
curl -sL get.docker.com | sed 's/9)/10)/' | sh
I confirm it works for now. Oneliner to install it on raspbian buster:
curl -sL get.docker.com | sed 's/9)/10)/' | sh
still just a workaround, not a fix tho
@MBlokhuijzen, it works on pi3. On pi0, it fails with illegal instruction.
I think there is no docker-ce package and workaround works on pi0(armv6) raspbian buster.
| result | docker-ce package | raspbian | device | issue/reason |
|---|---|---|---|---|
| works | 18.09.0~3-0~raspbian-stretch | stretch | pi3 | |
| fails | 18.09.0~3-0~raspbian-stretch | stretch | pi0 | https://github.com/docker/for-linux/issues/681 |
| works | 18.06.1~ce~3-0~raspbian | stretch | pi3 | |
| works | 18.06.1~ce~3-0~raspbian | stretch | pi0 | |
| works | 18.09.0~3-0~raspbian-stretch | buster | pi3 | |
| fails | 18.09.0~3-0~raspbian-stretch | buster | pi0 | illegal instruction |
| fails | 18.06.1~ce~3-0~raspbian | buster | pi3 | https://github.com/docker/for-linux/issues/545 |
For more detailed explanation of workaround proposed by @andresbono
- Find
do_installfunction. (in my scenario line 205.) - Find switch for
$lsb_dist(in my scenario 280.) and proceed to 'debian|raspbian' case. - Inside sub-switch
$dist_version(in my scenario 293.) add another case like:
case "$dist_version" in
10)
dist_version="stretch"
;;
# [...]
I confirm it works for now. Oneliner to install it on raspbian buster:
curl -sL get.docker.com | sed 's/9)/10)/' | sh
does not work here on RPi 3 B+. Pristine install from recent NOOBS, installs buster:
pi@raspberrypi:~/src/docker $ curl -sL get.docker.com | sed 's/9)/10)/' | sh
# Executing docker install script, commit: 2f4ae48
+ sudo -E sh -c apt-get update -qq >/dev/null
E: The repository 'https://download.docker.com/linux/raspbian 10 Release' does not have a Release file.
post edit: It works if you make sure the repository config is clean, see the answer from @caio below.
The oneline does not work on Raspberry PI 3b either.
Get the same error as @lowdef :-(