Guykhmel
Posts: 3
Joined: Wed Jun 26, 2019 10:50 am

No Docker for Raspbian Buster

Wed Jun 26, 2019 10:53 am

I installed Buster as a new image on my Pi (3B+).

When I'm trying to install Docker - i'm getting:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
Which is in matter of fact true, in https://download.docker.com/linux/raspbian/dists/ - there's no buster dist template.

What can I do?

Thanks

User avatar
topguy
Posts: 5673
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: No Docker for Raspbian Buster

Wed Jun 26, 2019 2:01 pm

There is a "docker.io" package in buster: https://packages.debian.org/buster/docker.io

john500y2k
Posts: 1
Joined: Wed Jun 26, 2019 3:29 pm

Re: No Docker for Raspbian Buster

Wed Jun 26, 2019 3:31 pm

Just got my rpi4 yesterday and tried to do the same thing and had the same problem. Is it just a matter of waiting for a release to come out or is there an alternative solution?

Growdelan
Posts: 5
Joined: Wed Jun 26, 2019 7:17 pm
Location: Poland

Re: No Docker for Raspbian Buster

Wed Jun 26, 2019 7:20 pm

I have the same problem with "Debian Buster" on Raspberry Pi 4 at the moment. I can't install the Docker from the script, and after installation by the package I can't run any container :(

Guykhmel
Posts: 3
Joined: Wed Jun 26, 2019 10:50 am

Re: No Docker for Raspbian Buster

Thu Jun 27, 2019 9:52 am

I installed both docker.io and docker-compose.io using the apt-get mentioned above,

Code: Select all

apt-get install docker.io
apt-get install docker-compose
but now I'm getting this error for every container I create:

Code: Select all

unable to find "net_prio" in controller set: unknown
Not sure what it means or what to do?

fruitoftheloom
Posts: 20442
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: No Docker for Raspbian Buster

Thu Jun 27, 2019 10:46 am

Guykhmel wrote:
Thu Jun 27, 2019 9:52 am
I installed both docker.io and docker-compose.io using the apt-get mentioned above,

Code: Select all

apt-get install docker.io
apt-get install docker-compose
but now I'm getting this error for every container I create:

Code: Select all

unable to find "net_prio" in controller set: unknown
Not sure what it means or what to do?

It appears to be an old "issue"

https://github.com/docker/for-linux/issues/545
Retired disgracefully.....

Guykhmel
Posts: 3
Joined: Wed Jun 26, 2019 10:50 am

Re: No Docker for Raspbian Buster

Thu Jun 27, 2019 12:19 pm

fruitoftheloom wrote:
Thu Jun 27, 2019 10:46 am
Guykhmel wrote:
Thu Jun 27, 2019 9:52 am
I installed both docker.io and docker-compose.io using the apt-get mentioned above,

Code: Select all

apt-get install docker.io
apt-get install docker-compose
but now I'm getting this error for every container I create:

Code: Select all

unable to find "net_prio" in controller set: unknown
Not sure what it means or what to do?

It appears to be an old "issue"

https://github.com/docker/for-linux/issues/545
Is there any actions to solve this?
I guess that this is the problem with this way of installing it through the apk-get instead of the get the script way (curl... | sh)

Growdelan
Posts: 5
Joined: Wed Jun 26, 2019 7:17 pm
Location: Poland

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 1:00 pm

Okay, there's a workaround for this problem, but it's just a workaround, it doesn't fix the situation.

Code: Select all

curl -sL get.docker.com | sed 's/9)/10)/' | sh
I checked on Raspberry Pi 4 with Rapsbian Buster and it works well.

hostingnuggets
Posts: 32
Joined: Fri Dec 28, 2012 5:52 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 3:27 pm

@Growdelan: where did you find this workaround?

Growdelan
Posts: 5
Joined: Wed Jun 26, 2019 7:17 pm
Location: Poland

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 3:48 pm


hostingnuggets
Posts: 32
Joined: Fri Dec 28, 2012 5:52 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 4:19 pm

Cheers, I am going to follow that github issue.

Brtwrst
Posts: 2
Joined: Sun Jun 30, 2019 4:35 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 4:37 pm

I'll just repost my message from the github issue thread here:

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/debia ... ble/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

hostingnuggets
Posts: 32
Joined: Fri Dec 28, 2012 5:52 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 6:31 pm

@Brtwrst what about the aufs-dkms package? Does installing docker your way also automatically pulls the aufs-dkms Raspbian package? Because currently that package does not seem to work on Raspbian buster [1]. I am still trying to figure a way to install manually (without the script) using the official repository on docker.com

[1] https://github.com/raspberrypi/linux/issues/3021

Brtwrst
Posts: 2
Joined: Sun Jun 30, 2019 4:35 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 8:03 pm

here the outputs from my apt list

apt list --installed | grep docker
docker-ce-cli/now 5:18.09.7~3-0~debian-buster armhf [installed,local]
docker-ce/now 5:18.09.7~3-0~debian-buster armhf [installed,local]

apt list --installed | grep container
containerd.io/now 1.2.6-3 armhf [installed,local]

apt list --installed | grep aufs
NOTHING

so i gess it did not install that package
still works flawlessly though

i'm running docker with this daemon.json
{
"data-root": "/mnt/data/docker",
"storage-driver": "overlay2"
}

https://docs.docker.com/storage/storage ... fs-driver/

hostingnuggets
Posts: 32
Joined: Fri Dec 28, 2012 5:52 pm

Re: No Docker for Raspbian Buster

Sun Jun 30, 2019 8:41 pm

Thanks for your input, I see that manually installing the .deb packages does not force you to install the AUFS-related packages which is nice... As you can see if you get the packages through the official APT repository it will force you to install the aufs-* packages as they seem to be required as dependency:

Code: Select all

# apt-get install -y docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aufs-dkms aufs-tools cgroupfs-mount containerd.io dkms docker-ce-cli
...
For now your workaround works nicely but I hope either Rasbian can fix the aufs-* packages on buster and/or Docker simply drops the aufs-* packages as dependency because anyway nowadays as you mention one should use overlay2.

User avatar
rpdom
Posts: 14985
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: No Docker for Raspbian Buster

Mon Jul 01, 2019 8:00 am

I think you'll find that the aufs packages are in Recommends, not Depends, so you should be able to skip installing those by using --no-install-recommends on the apt command line.

I usually add that option to my global apt configuration files, so I don't get Recommends packages installed. It rarely causes a problem.

JonathanG
Posts: 1
Joined: Tue Jul 02, 2019 5:51 pm

Re: No Docker for Raspbian Buster

Tue Jul 02, 2019 5:56 pm

Hi,

The buster build of raspberian 10 will run the raspbian 9 image (stretch). The problem is that the get docker script has not been updated in github yet to convert the 10 to use stretch. So do this:

curl -sSL https://get.docker.com >get.docker.com
vi get.docker.com
#Edit the line below with the 9) in to be 9|10)
case "$dist_version" in
9|10)
dist_version="stretch"

There are actually 2 places in the get.docker.com script that need this same edit.

Once you have done that just run the script and you get the lovely stretch version, which all works fine. I did it earlier this week and have the model 4 as the kuberneties master for my 5 old Model 3's.

Good luck,
Jonathan

kotovasii
Posts: 8
Joined: Mon Jul 01, 2019 8:43 pm

Re: No Docker for Raspbian Buster

Tue Jul 09, 2019 8:52 pm

JonathanG wrote:
Tue Jul 02, 2019 5:56 pm
Hi,

The buster build of raspberian 10 will run the raspbian 9 image (stretch). The problem is that the get docker script has not been updated in github yet to convert the 10 to use stretch. So do this:

curl -sSL https://get.docker.com >get.docker.com
vi get.docker.com
#Edit the line below with the 9) in to be 9|10)
case "$dist_version" in
9|10)
dist_version="stretch"

There are actually 2 places in the get.docker.com script that need this same edit.

Once you have done that just run the script and you get the lovely stretch version, which all works fine. I did it earlier this week and have the model 4 as the kuberneties master for my 5 old Model 3's.

Good luck,
Jonathan
I just tried this ( Pi4) runing latest Raspbian and get this error:

[email protected]:~ $ sudo sh get.docker.sh
# Executing docker install script, commit: 2f4ae48
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ 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.
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'

User avatar
topguy
Posts: 5673
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: No Docker for Raspbian Buster

Wed Jul 10, 2019 10:18 am

Buster was just released it went from "testing" to "stabe".
I think you just need to do an "apt upgrade" and answer yes to change the release type.

Edit: Yes, I actually meant "sudo apt update"..
Last edited by topguy on Wed Jul 10, 2019 6:49 pm, edited 1 time in total.

DirkS
Posts: 9899
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: No Docker for Raspbian Buster

Wed Jul 10, 2019 2:24 pm

topguy wrote:
Wed Jul 10, 2019 10:18 am
Buster was just released it went from "testing" to "stabe".
I think you just need to do an "apt upgrade" and answer yes to change the release type.

Code: Select all

apt update

kotovasii
Posts: 8
Joined: Mon Jul 01, 2019 8:43 pm

Re: No Docker for Raspbian Buster

Wed Jul 10, 2019 6:47 pm

DirkS wrote:
Wed Jul 10, 2019 2:24 pm
topguy wrote:
Wed Jul 10, 2019 10:18 am
Buster was just released it went from "testing" to "stabe".
I think you just need to do an "apt upgrade" and answer yes to change the release type.

Code: Select all

apt update
Hi,
so this (sudo apt update sudo apt upgrade) removed the last error, but I still have this:

[email protected]:~ $ sudo sh get.docker.sh
# Executing docker install script, commit: 2f4ae48
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ 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.


my get.docker.sh has the mods recommended above:
curl -sSL https://get.docker.com >get.docker.com
vi get.docker.com
#Edit the line below with the 9) in to be 9|10)
case "$dist_version" in
9|10)
dist_version="stretch"

kotovasii
Posts: 8
Joined: Mon Jul 01, 2019 8:43 pm

Re: No Docker for Raspbian Buster

Wed Jul 10, 2019 8:18 pm

Now works...

Code: Select all

-reinstalled raspbian via NOOBS
-curl -sL get.docker.com | sed 's/9)/10)/' | sh
Last edited by kotovasii on Tue Jul 23, 2019 6:02 pm, edited 1 time in total.

geev03
Posts: 114
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK

Re: No Docker for Raspbian Buster

Fri Jul 19, 2019 9:19 am

Docker on Pi4 Raspbian Buster cannot run arm64v8/alpine image ,"exec format error" .
One more reason for an arm64 OS as soon as possible....

Code: Select all

[email protected]:~ $ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
alpine              latest              962e8b19ad7b        7 days ago          3.74MB
arm64v8/alpine      latest              3ccacd36c381        7 days ago          5.33MB
hello-world         latest              618e43431df9        6 months ago        1.64kB
[email protected]:~ $ sudo docker run -it  3ccacd36c381  /bin/sh
standard_init_linux.go:211: exec user process caused "exec format error"
[email protected]:~ $ sudo docker run -it  962e8b19ad7b  /bin/sh
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/APKINDEX.tar.gz
v3.10.1-11-g89d0862481 [http://dl-cdn.alpinelinux.org/alpine/v3.10/main]
v3.10.1-9-gebc7b05d9e [http://dl-cdn.alpinelinux.org/alpine/v3.10/community]
OK: 10056 distinct packages available
/ # uname -a
Linux da9327732ebf 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l Linux
/ #


bruderbb
Posts: 1
Joined: Tue Jul 23, 2019 10:02 am

Re: No Docker for Raspbian Buster

Tue Jul 23, 2019 10:19 am

I just used the regular Debian-Source instead of the Raspbian one... works for me...

and added the following line to the file "/etc/apt/sources.list.d/docker.list" (create it, if it does not exist):

Code: Select all

deb [arch=armhf] https://download.docker.com/linux/debian/ buster stable
Then I installed like always:

Code: Select all

sudo apt update
sudo apt install --no-install-recommends docker-ce docker-compose
maybe that is not the optimal solution and maybe it creates a "Franken-Raspbian", but for now it works... at least for me ;)

Cheers, brudrebb

gulyabani
Posts: 1
Joined: Tue Aug 06, 2019 4:50 pm

Re: No Docker for Raspbian Buster

Tue Aug 06, 2019 4:53 pm

geev03 wrote:
Fri Jul 19, 2019 9:19 am
Docker on Pi4 Raspbian Buster cannot run arm64v8/alpine image ,"exec format error" .
One more reason for an arm64 OS as soon as possible....

Code: Select all

$ sudo docker run -it  3ccacd36c381  /bin/sh
standard_init_linux.go:211: exec user process caused "exec format error"
I'm getting the same error. Docker from both raspbian and debian stable releases installed fine, hello-world runs fine, a lot of scripts also run fine but in one script one line (one that tries to run chmod) gives this error. I haven't been able to figure out why.

Return to “Raspbian”