gpt4 book ai didi

docker - 创建默认 "bridge"网络 : cannot create network (docker0): conflicts with network (docker0): networks have same bridge name 时出错

转载 作者:IT老高 更新时间:2023-10-28 21:34:32 66 4
gpt4 key购买 nike

停止 docker 后,它拒绝重新启动。它提示另一个名为 docker0 的网桥已经存在:

level=warning msg="devmapper: Base device already exists and has filesystem xfs on it. User specified filesystem  will be ignored."
level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
level=info msg="Graph migration to content-addressability took 0.00 seconds"
level=info msg="Firewalld running: false"
level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
level=fatal msg="Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: cannot create network fa74b0de61a17ffe68b9a8f7c1cd698692fb56f6151a7898d66a30350ca0085f (docker0): conflicts with network bb9e0aab24dd1f4e61f8e7a46d4801875ade36af79d7d868c9a6ddf55070d4d7 (docker0): networks have same bridge name"
docker.service: Main process exited, code=exited, status=1/FAILURE
Failed to start Docker Application Container Engine.
docker.service: Unit entered failed state.
docker.service: Failed with result 'exit-code'.

使用 ip link del docker0 删除网桥,然后启动 docker 会导致使用另一个 id 的相同结果。

最佳答案

对我来说,我降级了我的操作系统(在这种情况下是 Centos Atomic Host)并遇到了这个错误消息。旧 Centos Atomic 的 docker 是 1.9.1。在运行降级之前,我没有任何正在运行的 docker 容器或镜像。

我简单地运行了下面的代码,docker 又高兴了:

sudo rm -rf /var/lib/docker/network
sudo systemctl start docker

More info.

关于docker - 创建默认 "bridge"网络 : cannot create network (docker0): conflicts with network (docker0): networks have same bridge name 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40524602/

66 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com