-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HNS failed with error on Windows 10 #4024
Comments
It seems like the issue is caused by some WinNAT limitations, see moby/moby#23314. I found some possible workarounds:
Unfortunately, both options causes network issues inside of container. |
Hi! Correct me if I am wrong, but I believe that is a duplicate of #3252 ? |
Hi! Sorry, I've missed that issues, it looks very close. However, as far as I understood, #3252 is (or will be) fixed on Windows Server 2016, so I am just concerned with the fix for Windows 10. |
@brenkehoe, it works fine with |
@khaale as soon as I add a static IP to any container I get the error. Best I seem to be able to do is external nat on a subnet of the main one without static ips. But in this instance, the containers don't appear able to communicate with each other unless I am doing something wrong. |
Is there any new regarding this? I'm desperately trying to start a number of services using docker-compose and running external network = "nat" makes it hard/Impossible to assign a known IP to a container and it also seems to break the internal network between the containers. |
I am also still getting this error running Windows 2016 and latest docker-compose 1.14.0.
This is the simplest compose file I could imagine:
Setting an external nat network solves the problem, but is not a really pretty fix. Is there something I am missing? Examples say this should work now. |
Any update on this issue? I am getting this error when I try to run musicstore sample as docker-compose -f .\docker-compose.windows.yml up or even inside VS. |
Any update on this issue? I am getting this issue on Windows Server 2016. Adding the following to the compose file fixes the issue but need to know why is this happening.
|
This happens to me occasionally and then clears itself up if I try again, seems to be a transient issue at least for us. Causing many headaches with VSTS... ` Server: 2017-08-15T17:41:43.8513005Z ##[error]C:\Program Files\Docker\docker.exe: Error response from daemon: failed to create endpoint confident_mclean on network nat: HNS failed with error : Unspecified error. |
@ansariwn I am trying something similar, and getting this error:
|
@mrichman Not sure. Try |
Hi when I type Get-ContainerNetwork in powershell, I am getting the following issue,
I also tried with lower case as well get-containernetwork. The issue is same. Kindly help me on this issue, |
@PradeepSubbaiyan |
Run this in Admin powershell:
|
Hello evryone, I ran docker CE version 18.09.1 stable on Window 10 pro version 1809 and I activated the Swarm mode. I can create service but I can not connect to Overlay Network. docker service create -d --name web --endpoint-mode dnsrr --publish mode=host,target=80,published=80 microsoft/iis it works! but if I try to connect to an Overlay Network it fails docker service create -d --name web --endpoint-mode dnsrr --publish mode=host,target=80,published=80 --network my-net microsoft/iis The error is: Hns failed with error : an adapter was not found Here are the Networks: NETWORK ID NAME DRIVER SCOPE d1d1547a5d5e Standardswitch ics local b3ad81976542 host transparent local b5i0zkys9nsj ingress overlay swarm 5d0212aab409 nat nat local ydkbf4vfnkqh my-net overlay swarm 039bdb7cc276 none null local |
@wadoodrahimi did you finally get any solution to this, facing the same issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
Hi, I have the following error while trying docker-compose up on Windows 10 (with Russian language pack, don't be afraid of cyrillic symbols). I'm using the latest build of docker-compose:
The Параметр задан неверно means Parameter is set incorrectly.
The text was updated successfully, but these errors were encountered: