The requested address is not valid in its context

Expected behavior

Docker should start

Actual behavior

Error: The requested address is not valid in its context

Information

Microsoft Surface Pro 4
Core i5, 256, 16GB

Windows 10
BuildNumber : 10586
Version : 10.0.10586

[22:13:45.160][Program ][Info ] Version 1.11.1-beta11 (build: 2789)
[22:13:45.164][Program ][Info ] Starting on: 5/11/2016 22:13:45
[22:13:45.169][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[22:13:45.173][Program ][Info ] OS: Windows 10 Pro
[22:13:45.177][Program ][Info ] Edition: Professional
[22:13:45.179][Program ][Info ] Id: 1511
[22:13:45.183][Program ][Info ] Build: 10586
[22:13:45.186][Program ][Info ] BuildLabName: 10586.306.amd64fre.th2_release_sec.160422-1850
[22:13:45.194][Program ][Info ] Mixpanel Id: B5078156-8F49-4C97-AAAC-5A931C039CCF
[22:13:45.198][Program ][Info ] Sha1: b0bc231ec0337a84cc1ce50f51df77f9b0f5c993
[22:13:45.202][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[22:13:45.245][Mixpanel ][Info ] Tracking: appLaunched
[22:13:47.767][Mixpanel ][Info ] Tracking: heartbeat
[22:13:47.787][BackendServer ][Info ] Started
[22:13:48.067][NamedPipeClient][Info ] Sending Version()…
[22:13:48.073][NamedPipeServer][Info ] Version()
[22:13:48.076][NamedPipeServer][Info ] Version done.
[22:13:48.080][NamedPipeClient][Info ] Received response for Version: Version 1.11.1-beta11 (build: 2789)
[22:13:48.083][NamedPipeClient][Info ] Sending CheckInstallation()…
[22:13:48.087][NamedPipeServer][Info ] CheckInstallation()
[22:13:48.091][HyperV ][Info ] Check Hyper-V Windows optional feature
[22:13:48.095][PowerShell ][Info ] Run script…
[22:13:50.344][HyperV ][Info ] Hyper-V Windows feature is enabled
[22:13:50.347][NamedPipeServer][Info ] CheckInstallation done.
[22:13:50.353][NamedPipeClient][Info ] Received response for CheckInstallation:
[22:13:50.359][NamedPipeClient][Info ] Sending CheckHyperVState()…
[22:13:50.366][NamedPipeServer][Info ] CheckHyperVState()
[22:13:50.381][HyperV ][Info ] Check Hyper-V Service State
[22:13:50.402][PowerShell ][Info ] Run script with parameters: -Check True…
[22:13:56.334][HyperV ][Info ] Hyper-V is running and responding
[22:13:56.339][HyperV ][Info ] Hyper-V is running
[22:13:56.342][NamedPipeServer][Info ] CheckHyperVState done.
[22:13:56.345][NamedPipeClient][Info ] Received response for CheckHyperVState:
[22:13:56.801][Authentication ][Info ] Checking token
[22:13:56.838][Mixpanel ][Info ] Tracking: installAskForToken
[22:14:04.571][Mixpanel ][Info ] Tracking: installTokenIsValid
[22:14:04.721][Notifications ][Info ] Docker is Initializing…
[22:14:04.725][Updater ][Info ] Checking for updates on the Beta channel…
[22:14:04.738][NamedPipeClient][Info ] Sending Stop()…
[22:14:04.742][NamedPipeServer][Info ] Stop()
[22:14:04.746][HyperV ][Info ] Stop
[22:14:04.751][PowerShell ][Info ] Run script with parameters: -Stop True…
[22:14:05.322][Updater ][Info ] Found remote version. Version = 1.11.1.2789
[22:14:05.326][Updater ][Info ] Local version is up to date.
[22:14:05.329][Updater ][Info ] Check for update done.
[22:14:05.580][HyperV ][Info ] VM MobyLinuxVM does not exist
[22:14:05.587][Firewall ][Info ] Closing ports…
[22:14:05.590][PowerShell ][Info ] Run script…
[22:14:08.025][Firewall ][Info ] Ports are closed
[22:14:08.028][NamedPipeServer][Info ] Stop done.
[22:14:08.032][NamedPipeClient][Info ] Received response for Stop:
[22:14:08.114][NamedPipeClient][Info ] Sending Start(2, 2048)…
[22:14:08.119][NamedPipeServer][Info ] Start(2, 2048)
[22:14:08.123][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe and C:\Program Files\Docker\Docker\DockerForWindows.exe…
[22:14:08.126][PowerShell ][Info ] Run script…
[22:14:09.742][Firewall ][Info ] Ports are opened
[22:14:09.774][HyperV ][Info ] Create
[22:14:09.777][PowerShell ][Info ] Run script with parameters: -Create True -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[22:14:10.530][HyperV ][Info ] Using existing Switch: DockerNAT
[22:14:10.628][HyperV ][Info ] Using existing Switch IP address
[22:14:10.664][HyperV ][Info ] Using existing Net NAT: DockerNAT
[22:14:10.876][HyperV ][Info ] VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx already exists
[22:14:11.023][HyperV ][Info ] Creating VM MobyLinuxVM…
[22:14:13.417][HyperV ][Info ] VM created.
[22:14:13.424][Dhcp ][Info ] Dhcp starting on port 67, on interface vEthernet (DockerNAT)…
[22:14:13.474][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:13.978][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:14.486][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:14.993][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:15.506][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:16.012][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:16.526][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:17.034][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:17.553][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[22:14:18.062][NamedPipeServer][Error ] Unable to executeStart: The requested address is not valid in its context
[22:14:18.073][NamedPipeClient][Error ] Unable to sending Start: The requested address is not valid in its context
[22:14:18.081][Notifications ][Error ] Error: The requested address is not valid in its context
[22:14:39.199][Program ][Info ] Sending Bugsnag report 1396cc79-0031-457b-9fb1-fb44d923d0d1 …
[22:14:39.646][Program ][Info ] Bugsnag report sent

Steps to reproduce the behavior

  1. Start Docker app

I’m getting the same issue here
[11:38:01.396][Program ][Info ] Version 1.11.1-beta11 (build: 2789)
[11:38:01.396][Program ][Info ] Starting on: 5/13/2016 11:38:01 AM
[11:38:01.412][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[11:38:01.412][Program ][Info ] OS: Windows 10 Pro
[11:38:01.412][Program ][Info ] Edition: Professional
[11:38:01.412][Program ][Info ] Id: 1511
[11:38:01.412][Program ][Info ] Build: 10586
[11:38:01.412][Program ][Info ] BuildLabName: 10586.306.amd64fre.th2_release_sec.160422-1850
[11:38:01.412][Program ][Info ] Mixpanel Id: 040A8669-880B-4F1D-AE2C-A8716A6E7323
[11:38:01.412][Program ][Info ] Sha1: b0bc231ec0337a84cc1ce50f51df77f9b0f5c993
[11:38:01.412][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[11:38:01.599][Mixpanel ][Info ] Tracking: appLaunched
[11:38:02.285][Mixpanel ][Info ] Tracking: heartbeat
[11:38:02.285][BackendServer ][Info ] Started
[11:38:02.348][NamedPipeClient][Info ] Sending Version()…
[11:38:02.348][NamedPipeServer][Info ] Version()
[11:38:02.348][NamedPipeServer][Info ] Version done.
[11:38:02.348][NamedPipeClient][Info ] Received response for Version: Version 1.11.1-beta11 (build: 2789)
[11:38:02.348][NamedPipeClient][Info ] Sending CheckInstallation()…
[11:38:02.364][NamedPipeServer][Info ] CheckInstallation()
[11:38:02.364][HyperV ][Info ] Check Hyper-V Windows optional feature
[11:38:02.364][PowerShell ][Info ] Run script…
[11:38:03.604][HyperV ][Info ] Hyper-V Windows feature is enabled
[11:38:03.604][NamedPipeServer][Info ] CheckInstallation done.
[11:38:03.604][NamedPipeClient][Info ] Received response for CheckInstallation:
[11:38:03.604][NamedPipeClient][Info ] Sending CheckHyperVState()…
[11:38:03.620][NamedPipeServer][Info ] CheckHyperVState()
[11:38:03.620][HyperV ][Info ] Check Hyper-V Service State
[11:38:03.620][PowerShell ][Info ] Run script with parameters: -Check True…
[11:38:06.996][HyperV ][Info ] Hyper-V is running and responding
[11:38:06.996][HyperV ][Info ] Hyper-V is running
[11:38:06.996][NamedPipeServer][Info ] CheckHyperVState done.
[11:38:06.996][NamedPipeClient][Info ] Received response for CheckHyperVState:
[11:38:07.167][Authentication ][Info ] Checking token
[11:38:07.292][Authentication ][Info ] Token is valid
[11:38:07.339][Notifications ][Info ] Docker is Initializing…
[11:38:07.339][Updater ][Info ] Checking for updates on the Beta channel…
[11:38:07.355][NamedPipeClient][Info ] Sending Stop()…
[11:38:07.355][NamedPipeServer][Info ] Stop()
[11:38:07.355][HyperV ][Info ] Stop
[11:38:07.355][PowerShell ][Info ] Run script with parameters: -Stop True…
[11:38:08.054][Updater ][Info ] Found remote version. Version = 1.11.1.2789
[11:38:08.057][Updater ][Info ] Local version is up to date.
[11:38:08.059][Updater ][Info ] Check for update done.
[11:38:08.180][HyperV ][Info ] Kill VM MobyLinuxVM…
[11:38:08.208][HyperV ][Info ] VM MobyLinuxVM is stopped
[11:38:08.208][Firewall ][Info ] Closing ports…
[11:38:08.208][PowerShell ][Info ] Run script…
[11:38:09.464][Firewall ][Info ] Ports are closed
[11:38:09.467][NamedPipeServer][Info ] Stop done.
[11:38:09.469][NamedPipeClient][Info ] Received response for Stop:
[11:38:09.519][NamedPipeClient][Info ] Sending Start(2, 2048)…
[11:38:09.522][NamedPipeServer][Info ] Start(2, 2048)
[11:38:09.526][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe and C:\Program Files\Docker\Docker\DockerForWindows.exe…
[11:38:09.528][PowerShell ][Info ] Run script…
[11:38:10.766][Firewall ][Info ] Ports are opened
[11:38:10.766][HyperV ][Info ] Create
[11:38:10.782][PowerShell ][Info ] Run script with parameters: -Create True -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[11:38:11.470][HyperV ][Info ] Using existing Switch: DockerNAT
[11:38:11.539][HyperV ][Info ] Using existing Switch IP address
[11:38:11.555][HyperV ][Info ] Using existing Net NAT: DockerNAT
[11:38:12.709][HyperV ][Info ] Using existing: MobyLinuxVM
[11:38:12.840][HyperV ][Info ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[11:38:12.856][Dhcp ][Info ] Dhcp starting on port 67, on interface vEthernet (DockerNAT)…
[11:38:13.009][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:13.525][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:14.038][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:14.553][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:15.069][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:15.585][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:16.100][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:16.616][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:17.131][Dhcp ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[11:38:17.647][NamedPipeServer][Error ] Unable to executeStart: The requested address is not valid in its context
[11:38:17.647][NamedPipeClient][Error ] Unable to sending Start: The requested address is not valid in its context
[11:38:17.647][Notifications ][Error ] Error: The requested address is not valid in its context
[11:38:27.137][Program ][Info ] Sending Bugsnag report f15bdf43-d285-4a7f-add9-3cd487bad267 …
[11:38:28.152][Program ][Info ] Bugsnag report sent

I’m having the exact same problem

What I’ve found trying to debug it is that the Dhcp starting on port 67, on interface vEthernet (DockerNAT)… never happens if we could start the DHCP manually that might help people with this problem.

I’m hitting the same issue today. Is there a known fix for this yet?

I’m still having this issue: “Unable to start the dhcp server: The requested address is not valid in its context. Will retry.”

I’ve posted my log below

I am also experiencing a similar problem. I have just installed Docker on Windows, created a container, paused the container, restarted the system, now Docker cannot load.

As I am restricted from attaching files, here is a link to pastebin:

Help would be appreciated.

Same issue here since Docker Beta 12. Tried everything I could think off - resetting Docker, uninstalling and installing Docker for Windows, enabling and disabling Hyper-V, manually deleting DocketNAT and VM and restarting Docker, disabling windows firewall, upgrade to Beta13 etc. sames issue persists :

Current Windows ver : Windows 10 Pro - Ver 1511 ( OS Build 10586.318 )
Docker for Windows : Version 1.11.1-beta13 ( build 3441 ) 5307146

log idicates issue with dhcp servr unable to bind to some port… Anyone managed to get this fixed or a temporary workaround ?

--------------- relevant tail of log snippets -------------------------
[10:07:03.853][DhcpServer ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[10:07:04.869][DhcpServer ][Error ] Unable to start the dhcp server: The requested address is not valid in its context. Will retry.
[10:07:05.963][NamedPipeServer][Error ] Unable to execute Start: The requested address is not valid in its context at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Docker.Backend.Dhcp.DhcpServer.Start(String netAdapterName, String subnetAdress, Int32 subnetMaskSize)
at Docker.Backend.Backend.Start(Int32 cpus, Int32 memory, String nameServer, String subnetAdress, Int32 subnetMaskSize)
at Docker.Backend.BackendServer.b__5_2(Object[] args)
at Docker.Core.pipe.NamedPipeServer.<>c__DisplayClass7_0.b__0(Object[] parameters)
at Docker.Core.pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
[10:07:05.979][NamedPipeClient][Error ] Unable to send Start: The requested address is not valid in its context
[10:07:05.995][Notifications ][Error ] The requested address is not valid in its context
[10:07:05.995][NamedPipeClient][Info ] Sending GetDebugInfo()…
[10:07:05.995][NamedPipeServer][Info ] GetDebugInfo()
[10:07:22.035][NamedPipeServer][Info ] GetDebugInfo done.
[10:07:22.035][NamedPipeClient][Info ] Received response for GetDebugInfo
[10:07:22.051][Program ][Info ] Sending Bugsnag report ed50c563-f28c-4a7b-be4e-ae1ce5b6b13e …
[10:07:26.620][Program ][Info ] Bugsnag report sent
[10:07:27.355][NamedPipeClient][Info ] Sending GetVmMaxMemory()…
[10:07:27.370][NamedPipeServer][Info ] GetVmMaxMemory()
[10:07:27.370][PowerShell ][Info ] Run script…
[10:07:28.151][NamedPipeServer][Info ] GetVmMaxMemory done.
[10:07:28.151][NamedPipeClient][Info ] Received response for GetVmMaxMemory

Update : Manage to resolve it using troubleshooting guide here ( only a workaround presently , as I had to disable quite a bit conflicting settings )

https://beta.docker.com/docs/windows/troubleshoot/

Disabled and deleted all DockerNAT adapter, disabled VirtualBox and VMware network adapters, deleted MobyLinuxVM machine , uninstalled and reinstalled Docker for Windows client Version 1.11.1-beta13 ( build 3441 ).
Under windows Network Connectoin-> vEthernet (DockerNAT) properties ; disabled IPV6 and Kaspersky NDIS6 filter.

1 Like

@thomasch Your post worked perfectly for me I found I had to go into Device Manager and found a bunch of old vEthernet (DockerNAT) adapters and had to uninstall all of them and then I re-installed the latest Docker for Windows and it works