mbox series

[SRU,I/raspi,0/1] Cannot start docker container on ubuntu 21.10 server for raspberry pi (LP: #1947601)

Message ID 20211105141512.168382-1-juergh@canonical.com
Headers show
Series Cannot start docker container on ubuntu 21.10 server for raspberry pi (LP: #1947601) | expand

Message

Juerg Haefliger Nov. 5, 2021, 2:15 p.m. UTC
[Impact]

Using the Ubuntu image for Raspberry Pi from here: https://cdimage.ubuntu.com/releases/21.10/release/ubuntu-21.10-preinstalled-server-arm64+raspi.img.xz

After installing the docker.io package, I cannot start a docker container. Example:

$ sudo docker run --rm hello-world
docker: Error response from daemon: failed to create endpoint pensive_greider on network bridge: failed to add the host (veth2102512) <=> sandbox (veth4fb66df) pair interfaces: operation not supported.

Update for everyone searching for a workaround and finding this bug:

sudo apt install linux-modules-extra-raspi

You may want to indicate above that you are affected.


[Test Case]

$ apt install docker.io
$ docker run --rm hello-world


[Fix]

Add veth module to linux-modules.


[Where Problems Could Occur]

New modules might get loaded which could trigger kernel crashes.

Juerg Haefliger (1):
  UBUNTU: [Packaging] raspi: Add veth module to linux-modules package

 debian.raspi/control.d/raspi.inclusion-list | 1 +
 1 file changed, 1 insertion(+)

Comments

Tim Gardner Nov. 5, 2021, 2:21 p.m. UTC | #1
Acked-by: Tim Gardner <tim.gardner@canonical.com>

On 11/5/21 8:15 AM, Juerg Haefliger wrote:
> [Impact]
> 
> Using the Ubuntu image for Raspberry Pi from here: https://cdimage.ubuntu.com/releases/21.10/release/ubuntu-21.10-preinstalled-server-arm64+raspi.img.xz
> 
> After installing the docker.io package, I cannot start a docker container. Example:
> 
> $ sudo docker run --rm hello-world
> docker: Error response from daemon: failed to create endpoint pensive_greider on network bridge: failed to add the host (veth2102512) <=> sandbox (veth4fb66df) pair interfaces: operation not supported.
> 
> Update for everyone searching for a workaround and finding this bug:
> 
> sudo apt install linux-modules-extra-raspi
> 
> You may want to indicate above that you are affected.
> 
> 
> [Test Case]
> 
> $ apt install docker.io
> $ docker run --rm hello-world
> 
> 
> [Fix]
> 
> Add veth module to linux-modules.
> 
> 
> [Where Problems Could Occur]
> 
> New modules might get loaded which could trigger kernel crashes.
> 
> Juerg Haefliger (1):
>    UBUNTU: [Packaging] raspi: Add veth module to linux-modules package
> 
>   debian.raspi/control.d/raspi.inclusion-list | 1 +
>   1 file changed, 1 insertion(+)
>
Stefan Bader Nov. 9, 2021, 8:09 a.m. UTC | #2
On 05.11.21 15:15, Juerg Haefliger wrote:
> [Impact]
> 
> Using the Ubuntu image for Raspberry Pi from here: https://cdimage.ubuntu.com/releases/21.10/release/ubuntu-21.10-preinstalled-server-arm64+raspi.img.xz
> 
> After installing the docker.io package, I cannot start a docker container. Example:
> 
> $ sudo docker run --rm hello-world
> docker: Error response from daemon: failed to create endpoint pensive_greider on network bridge: failed to add the host (veth2102512) <=> sandbox (veth4fb66df) pair interfaces: operation not supported.
> 
> Update for everyone searching for a workaround and finding this bug:
> 
> sudo apt install linux-modules-extra-raspi
> 
> You may want to indicate above that you are affected.
> 
> 
> [Test Case]
> 
> $ apt install docker.io
> $ docker run --rm hello-world
> 
> 
> [Fix]
> 
> Add veth module to linux-modules.
> 
> 
> [Where Problems Could Occur]
> 
> New modules might get loaded which could trigger kernel crashes.
> 
> Juerg Haefliger (1):
>    UBUNTU: [Packaging] raspi: Add veth module to linux-modules package
> 
>   debian.raspi/control.d/raspi.inclusion-list | 1 +
>   1 file changed, 1 insertion(+)
> 
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Juerg Haefliger Nov. 9, 2021, 3:28 p.m. UTC | #3
Applied to I/raspi master-next.

...Juerg


> [Impact]
> 
> Using the Ubuntu image for Raspberry Pi from here: https://cdimage.ubuntu.com/releases/21.10/release/ubuntu-21.10-preinstalled-server-arm64+raspi.img.xz
> 
> After installing the docker.io package, I cannot start a docker container. Example:
> 
> $ sudo docker run --rm hello-world
> docker: Error response from daemon: failed to create endpoint pensive_greider on network bridge: failed to add the host (veth2102512) <=> sandbox (veth4fb66df) pair interfaces: operation not supported.
> 
> Update for everyone searching for a workaround and finding this bug:
> 
> sudo apt install linux-modules-extra-raspi
> 
> You may want to indicate above that you are affected.
> 
> 
> [Test Case]
> 
> $ apt install docker.io
> $ docker run --rm hello-world
> 
> 
> [Fix]
> 
> Add veth module to linux-modules.
> 
> 
> [Where Problems Could Occur]
> 
> New modules might get loaded which could trigger kernel crashes.
> 
> Juerg Haefliger (1):
>   UBUNTU: [Packaging] raspi: Add veth module to linux-modules package
> 
>  debian.raspi/control.d/raspi.inclusion-list | 1 +
>  1 file changed, 1 insertion(+)
>