执行命令及报错信息
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
回贴