moby: failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)

  • [ x ] I have tried with the latest version of my channel (Stable or Edge)
  • [ x ] I have uploaded Diagnostics
  • Diagnostics ID: A60B047F-98F8-483D-9A5A-006030FCCD02/20200610023046

Expected behavior

Been able to run the service

Actual behavior

The service wont run and the task will send log the following error: failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)

Information

  • Windows Version:10.0.19041 Build 19041
  • Docker Desktop Version: I tried using the 2.3.1.0 (edge) and 2.3.03(stable). Same outcome.
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: I am using it on my local PC. Tried turning on/off WSL2 and same results

Steps to reproduce the behavior

  1. … docker swarm init --advertise-addr 192.168.0.92
  2. … docker network create -d overlay my-overlay
  3. … docker run -d -p 8000:80 --name my-running-site mcr.microsoft.com/windows/servercore/iis . I am able to have iis running on port 8000 without any issues.
  4. … docker service create --name web --endpoint-mode dnsrr --publish mode=host,target=8000 --network my-overlay --constraint ‘node.labels.os==windows’ mcr.microsoft.com/windows/servercore/iis
  5. … docker service ps web --no-trunc wsdxwby7g2va0gvsfo3ghdfen web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Ready Rejected 2 seconds ago "failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)" pp6ocb9zmtx5ei3riie8a97s0 \_ web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Shutdown Rejected 7 seconds ago "failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)" zp1pnwqwcq1s85enaz4qm7ilt \_ web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Shutdown Rejected 12 seconds ago "failed during hnsCallRawResponse: hns

_I created an issue with the for-win team, but they send me here. https://github.com/docker/for-win/issues/7155#issuecomment-642607526_

Update I followed these instructions moby/moby#39191 and still same issue. I even set my WinNode as a worker and created the container using my linux master node. same result 😕

dockerd is only listening on ports TCP: 53, 2377 and 7946 . What about this UDP port 4789 ?

Annotation 2020-06-11 214735

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

  1. I removed the original swarm, and service.
  2. I set the swarm to use the Default Switch on both the --advertise-addr and --listen-addr Annotation 2020-06-18 220201 docker swarm init --advertise-addr 172.19.112.1 --listen-addr 172.19.112.1:2377
  3. created a basic service without any reference to my-overlay network docker service create -p 8000:80 --name web mcr.microsoft.com/windows/servercore/iis I check the process and I seam like the service is running okay, but when I try to access on my browser htttp://172.19.112.1:8000 ISS seam down, I check the logs and I don see any issues.
  4. I stopped the previous service and started a new one. This time I only added the reference to my-overlay network. docker service create -p 8000:80 --name web --network my-overlay mcr.microsoft.com/windows/servercore/iis The service seams like is running okay, but I experience the same issue as step 3)

UPDATE: It seams to work if I set **mode=host** docker service create --publish mode=host,target=80,published=8080 --name web mcr.microsoft.com/windows/servercore/iis

If I add the reference to my-overlay network, it will complain about: port is already allocated. Even if there are not a single container nor a service running or using the port 8080 docker service create --publish mode=host,target=80,published=8080 --network my-overlay --name web mcr.microsoft.com/windows/servercore/iis Annotation 2020-06-18 233134