HNS error with error: parameter is invalid

I am making a containerized docker app using visual studio 2017. When I first run docker via visual studio, I got the error "ERROR: client version 1.22 is too old".

This bug was fixed by updating docker to version 2.1

Below link contains additional instruction about this specific error

ERROR: client version 1.22 is too old

After this error was resolved, now in Build Docker I get "HNS with error: parameter is invalid".

From several github discussions, I discovered that this is a Windows network error.

Is there a solution to this problem? Should I downgrade the docker version or install something else.

I am using windows container. When running docker version Client: Version: 17.06.0-ce API version: 1.30 Go version: go1.8.3 Git commit: 02c1d87 Build: Fri Jun 23 21:30:30 2017 OS / 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

Edit:

If I switch to a linux container, this issue is resolved. But another problem is that the disk is not being used. After sharing d: The problem with the disk drive is still happening.

How can I solve the Linux disk sharing issue.

I want to use windows container locally so that I can deploy this application in azure.

+3


source to share


1 answer


This is a known limitation. Currently windows only support one NAT network. Removing Netnat using the Remove-Netnat call is not supported.

Run this in powerhell.



Get-NetNat | Remove-NetNat

+9


source







All Articles