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

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.

Floppy avatar Jun 27 '19 12:06 Floppy

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.

EasternPA avatar Jun 28 '19 17:06 EasternPA

Any updates on this?

garyng avatar Jun 29 '19 14:06 garyng

Confirm, cant install on raspbian buster

Qarasique avatar Jun 29 '19 16:06 Qarasique

Any way to manually install?

hminaya avatar Jun 29 '19 17:06 hminaya

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.

marklagendijk avatar Jun 29 '19 17:06 marklagendijk

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.

kolektiv avatar Jun 29 '19 18:06 kolektiv

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 avatar Jun 29 '19 18:06 garyng

@garyng how did it work out for you? All good with the containers?

hminaya avatar Jun 29 '19 18:06 hminaya

@hminaya seems pretty stable ... for now

garyng avatar Jun 29 '19 18:06 garyng

@garyng could you maybe share the the script? I'm not entirely sure what to edit in the script

MBlokhuijzen avatar Jun 29 '19 19:06 MBlokhuijzen

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

MBlokhuijzen avatar Jun 29 '19 19:06 MBlokhuijzen

I confirm it works for now. Oneliner to install it on raspbian buster:

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

andresbono avatar Jun 29 '19 19:06 andresbono

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

kasprzakdanielt avatar Jun 29 '19 19:06 kasprzakdanielt

@MBlokhuijzen, it works on pi3. On pi0, it fails with illegal instruction.

notogawa avatar Jun 30 '19 00:06 notogawa

I think there is no docker-ce package and workaround works on pi0(armv6) raspbian buster.

notogawa avatar Jun 30 '19 01:06 notogawa

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

notogawa avatar Jun 30 '19 01:06 notogawa

For more detailed explanation of workaround proposed by @andresbono

  1. Find do_install function. (in my scenario line 205.)
  2. Find switch for $lsb_dist (in my scenario 280.) and proceed to 'debian|raspbian' case.
  3. Inside sub-switch $dist_version (in my scenario 293.) add another case like:
case "$dist_version" in
    10)
        dist_version="stretch"
         ;;
# [...]

xenosathl avatar Jun 30 '19 12:06 xenosathl

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.

lowdef avatar Jun 30 '19 14:06 lowdef

The oneline does not work on Raspberry PI 3b either.

Get the same error as @lowdef :-(

theDiverDK avatar Jun 30 '19 15:06 theDiverDK