for-win icon indicating copy to clipboard operation
for-win copied to clipboard

HNS Error during network creation on Windows

Open n-junge opened this issue 9 years ago • 2 comments

Cannot create network in Windows Container mode. Neither manually nor within a docker-compose.

Expected behavior

Docker creates a network.

Actual behavior

Procedure crashes with Error: HNS failed with error : The parameter is incorrect.

Information

Running on Windows 10 Creators Update Diagnostic ID: 7F16A727-E848-4D11-A527-B173C04700F3/2017-10-04_16-07-51

Log: Version: 17.09.0-ce-win32 (13529) Channel: stable Sha1: a94cf27a02ecf7ecb0c050ad44145c76efc2972d Started on: 2017/10/04 15:48:02.392 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Enterprise Edition: Enterprise Id: 1607 Build: 14393 BuildLabName: 14393.1480.amd64fre.rs1_release.170706-2004 File: C:\ProgramData\Docker\service.txt CommandLine: "C:\Program Files\Docker\Docker\com.docker.service" You can send feedback, including this log file, at https://github.com/docker/for-win/issues

[16:21:13.746][NamedPipeServer][Info ] Start done in 00:00:16.4038922. [16:21:29.507][ApiProxy ][Info ] proxy >> GET /v1.25/info [16:21:29.507][ApiProxy ][Info ] Dial name pipe \.\pipe\docker_engine_windows [16:21:29.507][ApiProxy ][Info ] Successfully dialed name pipe \.\pipe\docker_engine_windows [16:21:29.508][WindowsDaemon ][Info ] debug: Calling GET /v1.25/info [16:21:29.541][ApiProxy ][Info ] proxy << GET /v1.25/info [16:21:29.544][ApiProxy ][Info ] proxy >> GET /v1.25/networks/desktop_default [16:21:29.544][ApiProxy ][Info ] Dial name pipe \.\pipe\docker_engine_windows [16:21:29.544][ApiProxy ][Info ] Successfully dialed name pipe \.\pipe\docker_engine_windows [16:21:29.546][WindowsDaemon ][Info ] debug: Calling GET /v1.25/networks/desktop_default [16:21:29.551][ApiProxy ][Info ] proxy << GET /v1.25/networks/desktop_default [16:21:29.555][ApiProxy ][Info ] proxy >> POST /v1.25/networks/create [16:21:29.555][ApiProxy ][Info ] Dial name pipe \.\pipe\docker_engine_windows [16:21:29.555][ApiProxy ][Info ] Successfully dialed name pipe \.\pipe\docker_engine_windows [16:21:29.557][WindowsDaemon ][Info ] debug: Calling POST /v1.25/networks/create [16:21:29.557][WindowsDaemon ][Info ] debug: form data: {"Attachable":true,"Labels":{"com.docker.compose.network":"default","com.docker.compose.project":"desktop"},"Name":"desktop_default"} [16:21:29.564][WindowsDaemon ][Info ] debug: Allocating IPv4 pools for network desktop_default (c55d77514a3e1ef68d07b7bd083a83f171c6897c6b7b7e9d0e8f5d19ba6d393e) [16:21:29.564][WindowsDaemon ][Info ] debug: RequestPool(LocalDefault, , , map[], false) [16:21:29.564][WindowsDaemon ][Info ] debug: RequestAddress(0.0.0.0/0, , map[RequestAddressType:com.docker.network.gateway]) [16:21:29.564][WindowsDaemon ][Info ] debug: HNSNetwork Request ={"Name":"c55d77514a3e1ef68d07b7bd083a83f171c6897c6b7b7e9d0e8f5d19ba6d393e","Type":"nat","Subnets":[{"AddressPrefix":"0.0.0.0/0","GatewayAddress":"0.0.0.0"}]} Address Space=[{0.0.0.0/0 0.0.0.0 []}] [16:21:29.565][WindowsDaemon ][Info ] debug: [POST]=>[/networks/] Request : {"Name":"c55d77514a3e1ef68d07b7bd083a83f171c6897c6b7b7e9d0e8f5d19ba6d393e","Type":"nat","Subnets":[{"AddressPrefix":"0.0.0.0/0","GatewayAddress":"0.0.0.0"}]} [16:21:29.582][WindowsDaemon ][Info ] debug: releasing IPv4 pools from network desktop_default (c55d77514a3e1ef68d07b7bd083a83f171c6897c6b7b7e9d0e8f5d19ba6d393e) [16:21:29.583][ApiProxy ][Info ] proxy << POST /v1.25/networks/create [16:21:29.583][WindowsDaemon ][Info ] debug: ReleaseAddress(0.0.0.0/0, 0.0.0.0) [16:21:29.583][WindowsDaemon ][Info ] debug: ReleasePool(0.0.0.0/0) [16:21:29.583][WindowsDaemon ][Info ] debug: FIXME: Got an API for which error does not match any expected type!!!: HNS failed with error : The parameter is incorrect. [error_type=*errors.errorString module=api] [16:21:29.583][WindowsDaemon ][Error ] Handler for POST /v1.25/networks/create returned error: HNS failed with error : The parameter is incorrect. [16:21:29.584][WindowsDaemon ][Info ] debug: FIXME: Got an API for which error does not match any expected type!!!: HNS failed with error : The parameter is incorrect. [error_type=*errors.errorString module=api]

n-junge avatar Oct 04 '17 14:10 n-junge

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 avatar Mar 28 '18 10:03 docker-robott

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-robott avatar Jun 24 '20 03:06 docker-robott