docker 中出现“配对接口:不支持操作”错误

Mar*_*tea 4 networking docker 21.10

我为 Raspberry PI 安装了 Ubuntu 21.10 Server,然后安装了 Docker 并使用 docker-compose 启动了一些容器,但我注意到这不再起作用。之前我有 Ubuntu 20.04 LST,一切都工作正常(除了缺乏 NVME 启动支持,在 21.10 中添加)。

Error response from daemon: failed to create endpoint fpm-redis-1 on network fpm_default: failed to add the host (veth4f16537) <=> sandbox (veth3eb890a) pair interfaces: operation not supported
Run Code Online (Sandbox Code Playgroud)

经过几个小时的尝试寻找解决方案后,该问题似乎与内核相关。

小智 6

根据21.10 的发行说明,这应该有所帮助:

sudo apt install linux-modules-extra-raspi
Run Code Online (Sandbox Code Playgroud)

linux-modules-raspi为了减小 initramfs 的大小,各种内核模块已从软件包中移出。这会导致多个应用程序(最明显的是Docker,bug 1947601)由于缺少内核模块而失败。要解决此问题:

sudo apt install linux-modules-extra-raspi