HNS失败,出现错误:参数不正确 [英] HNS failed with error : The parameter is incorrect
问题描述
我正在使用Visual Studio 2017制作Docker容器化应用程序. 首先通过Visual Studio运行Docker时,出现错误消息错误:客户端版本1.22太旧".
I am making a docker containerized application using visual studio 2017. When running docker through visual studio first, I got an error that "ERROR: client version 1.22 is too old".
此错误已通过将docker compose更新到版本2.1得以解决
This error was resolved by updating docker compose to version 2.1
下面的链接包含有关此特定错误的进一步说明
Below link contains further instruction about this specific error
此错误解决后,现在在Building docker上,我收到"HNS因错误而失败:参数不正确."
After this error was resolved ,On Building docker now I get "HNS failed with error : The parameter is incorrect."
从多个github讨论中,我发现这是Windows网络错误.
From multiple github discussion I have found that it is a windows network error.
是否有解决此问题的方法? 我应该降低docker版本的等级还是安装其他版本.
Is there a solution to this problem ? Should I down grade docker version or install something else.
我正在使用Windows容器. 在运行docker版本时 客户: 版本:17.06.0-ce API版本:1.30 Go版本:go1.8.3 Git提交:02c1d87 建成:2017年6月23日星期五21:30:30 操作系统/Arch:Windows/amd64
I am using windows container. On running docker version Client: Version: 17.06.0-ce API version: 1.30 Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 21:30:30 2017 OS/Arch: windows/amd64
服务器: 版本:17.06.0-ce API版本:1.30(最低版本1.24) Go版本:go1.8.3 Git提交:02c1d87 建造时间:2017年6月23日星期五22:19:00 操作系统/Arch:Windows/amd64 实验性:正确
Server: Version: 17.06.0-ce API version: 1.30 (minimum version 1.24) Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 22:19:00 2017 OS/Arch: windows/amd64 Experimental: true
如果我切换到linux容器,则此问题已解决. 但是发生另一个问题,驱动器未共享. 共享d:驱动器驱动器共享问题仍然存在.
If I switch to linux container this problem is solved. But another issue occurs drive is not shared. After sharing d: drive drive sharing issue still occurs.
如何解决linux容器驱动器共享问题.
How can I resolve linux container drive sharing issue.
我想在本地使用Windows容器,以便可以在Azure上部署此应用程序.
I want to use windows container locally so that I can deploy this app on azure.
推荐答案
这是一个已知的限制.目前,Windows仅支持一个NAT网络.不支持通过调用Remove-Netnat来删除Netnat.
This is a known limitation. At present windows only supports one NAT network. Removing Netnat by invoke Remove-Netnat is not supported.
在powerhell中运行它.
Run this in powerhell.
Get-NetNat | Remove-NetNat
这篇关于HNS失败,出现错误:参数不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!