求助:Debian 11系统使用docker采用--privileged=true网略配置启动容器报failed to add the host (veth708019e) <=> sandbox (veth042df88) pair interfaces: operation not supported.

xyc 2024-07-23 17:56:51

执行命令及报错信息

root@AiGateway:/home/pnc/home/xyc-platform/load# docker run -p 17500:3306  --name=platform-mysql --privileged=true --restart=always -v $PWD/mysql/conf:/etc/mysql/conf.d  -v $PWD/mysql/logs:/logs  -v $PWD/mysql/data:/var/lib/mysql  -e MYSQL_ROOT_PASSWORD=123456  -d registry.cn-hangzhou.aliyuncs.com/aliyun_ww_namespace/linux_aarch64_mysql:8.0
6c41e041c61de97c7bd3de9838f0293a6716a24d2008f7f5d49c429472bf2c83
docker: Error response from daemon: failed to create endpoint platform-mysql on network bridge: failed to add the host (vethcf5bcb1) <=> sandbox (vetheeb4a25) pair interfaces: operation not supported.
root@AiGateway:/home/pnc/home/xyc-platform/load#


疑问:

把启动容器中的--privileged=true 换成--network=host ,容器启动成功


求助:如何实现 --privileged=true启动容器


前提条件

系统:

root@AiGateway:/etc/docker# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

root@AiGateway:/etc/docker# uname -m
aarch64

蝉知2.0