Docker-compose和网络 [英] Docker-compose and networks
问题描述
在Windows 2016 TP5上,我试图创建一个简单的docker-compose.yml
< p style ="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
创建网络" dockerdemo_default"使用默认驱动程序
错误:HNS失败并显示错误:无法创建网络
< p style ="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
我已经看到Stefan Scherer尝试了同样的功能(并且他成功地指定了网络:无)。他给出了这个理由:
目前我只有一个 docker-compose.yml
工作
with net:none
yml文件.AFAIK目前没有链接,因此您需要一些其他方式进行服务发现。
< p style ="margin-bottom:0cm;边距:.0001pt;行高:正常; text-autospace:none">
这是与Docker相关的Windows内核功能的限制,还是docker-compose的限制?或两者兼而有之?
有相同的错误在docker容器昨天成功运行之后,就像你一样,在Azure上的TP5获得一些更新后,它今天失败了。
报告了一个问题:https://github.com/Microsoft/Virtualization-Documentation /问题/ 273
On Windows 2016 TP5, I was trying to create a simple docker-compose.yml
Creating network "dockerdemo_default" with the default driver
ERROR: HNS failed with error : Failed to create network
I have seen that Stefan Scherer has tried this same feature (and he has succeeded specifying network: none). He gives this justification:
At the moment I only got a docker-compose.yml
working
with net: none
in
the yml file. AFAIK there are no links at the moment so you need some other way for service discovery.
Is this a limitation of the Windows kernel features related to Docker, or a limitation in docker-compose? Or both?
Having the same error message like you after the docker container worked successfully yesterday, it fails today after TP5 on Azure got some updates.
Reported an issue: https://github.com/Microsoft/Virtualization-Documentation/issues/273
这篇关于Docker-compose和网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!