Skip to content
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

Docker: Error response from daemon: failed to create endpoint determined_curran on network nat: HNS failed with error : Unspecified error #5683

Closed
hemantkalra opened this issue Feb 4, 2020 · 3 comments

Comments

@hemantkalra
Copy link

Expected behavior
docker run -p 8081:8080 f00324fdc2a6 should run my docker and map 8081 local port to 8080 docker port.

I am using Docker version Docker version 19.03.5, build 2ee0c57608 on Windows 2016.

Actual behavior
docker: Error response from daemon: failed to create endpoint determined_curran on network nat: HNS failed with error : Unspecified error.

Information
Not able to get any output and DockerDebuginfo.ps1 is not found and dockerd -D is giving following.
time=“2020-02-04T09:37:21.290152100+05:30” level=info msg=“Starting up”
failed to load listeners: open //./pipe/docker_engine: Access is denied.

Steps to reproduce the behavior
docker run -p 8081:8080 f00324fdc2a6

I am very new to Docker. I installed docker in Windows 2016 following steps mentioned in docker website. As far as I understood there is something wrong with networking and I followed all the steps mentioned in following link but there is no luck.

#750

@basickarl
Copy link

basickarl commented Feb 17, 2020

Getting the same: docker: Error response from daemon: failed to create endpoint hole on network nat: HNS failed with error : Unspecified error.

PS C:\windows\system32> docker version
Client: Docker Engine - Enterprise
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        2ee0c57608
 Built:             11/13/2019 08:00:16
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Enterprise
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.12.12
  Git commit:       2ee0c57608
  Built:            11/13/2019 07:58:51
  OS/Arch:          windows/amd64
  Experimental:     false

Stuff:

PS C:\windows\system32> stop-service hns
PS C:\windows\system32> stop-service docker
PS C:\windows\system32> del 'C:\ProgramData\Microsoft\Windows\hns\hns.data'
PS C:\windows\system32> Get-ContainerNetwork | Remove-ContainerNetwork

Confirm
Remove-ContainerNetwork will remove the container network "".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
PS C:\windows\system32> Get-NetNat | Remove-NetNat

Confirm
Are you sure you want to perform this action?
Performing operation Delete on Target Hf00b9bfb-931e-4d79-b1ce-1e93e56221ec PolicyStore Local
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
PS C:\windows\system32> start-service hns
PS C:\windows\system32> start-service docker

After that I can do a docker run on one container but if I do another it states: docker: Error response from daemon: failed to create endpoint traefik on network nat: HNS failed with error : The object already exists.

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants