docker network ls显示2个nat网络 [英] docker network ls is showing 2 nat networks
问题描述
您好
在Windows 2016 TP5中,我可以在运行"docker network ls"时看到2个nat网络
In Windows 2016 TP5, I can see 2 nat networks when running "docker network ls"
> docker network ls
NETWORK ID       NAME             DRIVER
5b6f16b9deea     nat               nat
4de4abd1b2b7     nat               nat
5fb508a66334     none             null
> docker network ls
NETWORK ID NAME DRIVER
5b6f16b9deea nat nat
4de4abd1b2b7 nat nat
5fb508a66334 none null
我无法删除其中任何一个(错误: 来自守护程序的错误响应:nat是预定义的网络,无法删除)
And I can't delete any of them (error: Error response from daemon: nat is a pre-defined network and cannot be removed)
启动容器时有2个nat网络导致问题: 守护程序的错误响应:无法在网络上创建端点spread1:未找到网络:5b6f16b9deea6a59e0a9e0d1e6f783c4d04a0b80 ...
Having 2 nat networks is causing problems when starting the container: Error response from daemon: failed to create endpoint spread1 on network nat: network not found: 5b6f16b9deea6a59e0a9e0d1e6f783c4d04a0b80...
当我检查容器时,我可以看到网络ID是 4de4abd1b2b704f29284287c9c1201c0635ca ...
when I inspect the container, I can see that the network id is 4de4abd1b2b704f29284287c9c1201c0635ca...
任何原因有2个nat网络?我可以做些什么来删除其中一个?
Any reason there are 2 nat networks? anything I can do to remove one of them?
推荐答案
我想为此,你可以使用这个线程的分辨率:https: //social.msdn.microsoft.com/Forums/en-US/3ddb2693-545c-48c3-a24a-9e21c5513782/trouble-collection-tp-5?forum=windowscontainers
I think for that, you can use the resolution of this thread: https://social.msdn.microsoft.com/Forums/en-US/3ddb2693-545c-48c3-a24a-9e21c5513782/trouble-collection-tp-5?forum=windowscontainers
停止Docker (停止服务码头)
stop Docker (stop-service docker)
转到programfiles\docker并打开runDockerDaemon.cmd
go to programfiles\docker and open runDockerDaemon.cmd
搜索dockerd并添加-b" none"
search for dockerd and add -b "none"
保存文件
使用(启动服务泊坞窗)重启Docker
restart Docker with (start-service docker)
尝试删除nat docker network rm nat。
try to remove nat with docker network rm nat.
问候Marcel
这篇关于docker network ls显示2个nat网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!