-
Notifications
You must be signed in to change notification settings - Fork 287
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
Windows Server 2016 docker cannot create networks #750
Comments
|
The problem is i cannot create any networks without getting HNS failed with error I tried docker create network -d overlay myoverlay
|
I went through the uninstall again and deleted all docker folders and such and install the latest docker for windows edge release and am still getting the error here is some powershell output
|
Is there are reason you're trying to use the |
Running some check script
|
And no there is no reason i am using transport instead of overlay.. please don't get hung up on that. The problem I am having is I cannot create any docker networks. |
I tried the docker compose file for overlay you suggested And immediately when i run docker-compose it fails with the error shown below
|
Another note I tried the docker-compose file you put in 3. above and got the same results |
I have done all windows updates Per windows update |
Ok - not sure what i did or what changed but now i am getting this error as i have been monkeying around quite a bit with random things
However docker compose on the music store still shows this
And if I just run create without a driver specified
|
ping @kallie-b @JMesser81 |
Just tried uninstalling and reinstalling the latest windows updates and still have the same error messages |
@mechanic22 - I'll help you out with this. Please:
|
Commands
Output
|
If it helps i tried the docker compose command on the music store docker-compose.yml Command
Output
|
@mechanic22 -- Thank you! I'll check with my team on the error you're getting and get back to you ASAP. |
@mechanic22 -- could you please do |
|
Do you know if there is a way to reset or reinstall the HNS stuff? That is pretty much the only thing I havent reinstalled at this point that I can think of |
You have multiple networks created and we have to clean them up. Could you please do the following? get-containernetwork | remove-containernetwork post that can u do ipconfig /all |
also please remove the node from swarm before deleting the container networks |
|
Perfect thanks. Could you please do the following? stop-service hns after this docker network ls ipconfig /all Hope this helps. |
|
Now HNS is cleaned up. Can you please try running your compose command and see if it works. Background on the issue you are facing if we have transparent or overlay network, then the physical adapter is bound to the switch so creating another network to bind the same nic fails with Invalid parameter(We should have given a better error). You should be able to remove-containernetwork that specific network which should clean up itself |
Shoot i ran that last bit on the wrong server Sorry However i tried it on the actual broken server and got these results
I then ran the docker daemon debug and this is the error
|
Can you please do ipconfig /all? |
Here you go
|
https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-server-container-tools/CleanupContainerHostNetworking Reboot the system then do ipconfig /all |
|
@johannes-brunner -- That makes sense. I'll troubleshoot this a bit myself, and get back to you as soon as possible. |
@kallie-b I first got the error by running docker-compose up -d against the following docker-compose file:
However the interesting twist is that when I tried running docker create network -d overlay myoverlay it appears the Docker network image is missing Next I ran docker in debug mode and tried again it appears Docker can not fetch the network image it needs from the repository: PS C:\run\teamcity> dockerd.exe -D
time="2017-06-30T09:06:32.330052500Z" level=debug msg="Listener created for HTTP on npipe (//./pipe/docker_engine)"
time="2017-06-30T09:06:32.378052300Z" level=info msg="Windows default isolation mode: process"
time="2017-06-30T09:06:32.379053400Z" level=debug msg="Using default logging driver json-file"
time="2017-06-30T09:06:32.380052700Z" level=debug msg="WindowsGraphDriver InitFilter at C:\\ProgramData\\docker\\windows
filter"
time="2017-06-30T09:06:32.381053000Z" level=info msg="[graphdriver] using prior storage driver: windowsfilter"
time="2017-06-30T09:06:32.381053000Z" level=debug msg="Using graph driver windowsfilter"
time="2017-06-30T09:06:32.392052400Z" level=debug msg="Max Concurrent Downloads: 3"
time="2017-06-30T09:06:32.392052400Z" level=debug msg="Max Concurrent Uploads: 5"
time="2017-06-30T09:06:32.424052900Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-06-30T09:06:32.426053000Z" level=info msg="Loading containers: start."
time="2017-06-30T09:06:32.428053200Z" level=debug msg="Loaded container 3010c995d05e074164e55856c415362970771dac8ea07b21
fbe0e4313dfea15b"
time="2017-06-30T09:06:32.429053600Z" level=debug msg="Loaded container 90fb09e9d3ab0f3449f169e98f37be7f623a230e263ec009
ac8f66682b9d5542"
time="2017-06-30T09:06:32.431053300Z" level=debug msg="Loaded container 9c7ccdd9fa13fb59e2a05b764e75d44f9bfc1b248e702138
6c25145fe6d43215"
time="2017-06-30T09:06:32.461053300Z" level=debug msg="Option Experimental: false"
time="2017-06-30T09:06:32.463053300Z" level=debug msg="Option DefaultDriver: nat"
time="2017-06-30T09:06:32.463053300Z" level=debug msg="Option DefaultNetwork: nat"
time="2017-06-30T09:06:32.506053700Z" level=debug msg="Network Response : [ { \"CurrentEndpointCount\" : 0, \"ExternalIn
terfaceAddress\" : \"00-22-48-01-95-99\", \"ExternalInterfaceIndex\" : 14, \"ID\" : \"11582ae5-d7fd-4809-8241-c2914dcbd0
b1\", \"MacPools\" : [ { \"EndMacAddress\" : \"00-15-5D-3F-2F-FF\", \"StartMacAddress\" : \"00-15-5D-3F-20-00\" } ], \"M
axConcurrentEndpoints\" : 1, \"NATName\" : \"H11582ae5-d7fd-4809-8241-c2914dcbd0b1\", \"Name\" : \"nat\", \"Policies\" :
[ ], \"Subnets\" : [ { \"AddressPrefix\" : \"172.17.112.0/20\", \"GatewayAddress\" : \"172.17.112.1\" } ], \"SwitchGui
d\" : \"2bc045d8-f5e3-46e4-adaf-423b76779c74\", \"TotalEndpoints\" : 5, \"Type\" : \"nat\", \"Version\" : 4294967297 } ]
"
time="2017-06-30T09:06:32.510053600Z" level=debug msg="Launching DNS server for network%!(EXTRA string=none)"
time="2017-06-30T09:06:32.530053900Z" level=debug msg="releasing IPv4 pools from network nat (500d740bb21ea17e970da5be1f
aabe581826d26bf2e09dfcd02e558c8304445f)"
time="2017-06-30T09:06:32.531055400Z" level=debug msg="ReleaseAddress(172.17.112.0/20, 172.17.112.1)"
time="2017-06-30T09:06:32.531055400Z" level=debug msg="ReleasePool(172.17.112.0/20)"
time="2017-06-30T09:06:32.564055300Z" level=debug msg="Allocating IPv4 pools for network nat (34b07897735ab9009f4befce31
100c939f2dd06e8b0811cfb9e1110bae178b58)"
time="2017-06-30T09:06:32.566054200Z" level=debug msg="RequestPool(LocalDefault, 172.17.112.0/20, , map[], false)"
time="2017-06-30T09:06:32.567054200Z" level=debug msg="RequestAddress(172.17.112.0/20, 172.17.112.1, map[RequestAddressT
ype:com.docker.network.gateway])"
time="2017-06-30T09:06:32.567054200Z" level=debug msg="Launching DNS server for network%!(EXTRA string=nat)"
time="2017-06-30T09:06:32.574054700Z" level=debug msg="Network Response : { \"CurrentEndpointCount\" : 0, \"ExternalInte
rfaceAddress\" : \"00-22-48-01-95-99\", \"ExternalInterfaceIndex\" : 14, \"ID\" : \"11582ae5-d7fd-4809-8241-c2914dcbd0b1
\", \"MacPools\" : [ { \"EndMacAddress\" : \"00-15-5D-3F-2F-FF\", \"StartMacAddress\" : \"00-15-5D-3F-20-00\" } ], \"Max
ConcurrentEndpoints\" : 1, \"NATName\" : \"H11582ae5-d7fd-4809-8241-c2914dcbd0b1\", \"Name\" : \"nat\", \"Policies\" : [
], \"Subnets\" : [ { \"AddressPrefix\" : \"172.17.112.0/20\", \"GatewayAddress\" : \"172.17.112.1\" } ], \"SwitchGuid\
" : \"2bc045d8-f5e3-46e4-adaf-423b76779c74\", \"TotalEndpoints\" : 5, \"Type\" : \"nat\", \"Version\" : 4294967297 }"
time="2017-06-30T09:06:32.576054200Z" level=debug msg="Binding a resolver on network nat gateway 172.17.112.1"
time="2017-06-30T09:06:32.577054100Z" level=debug msg="Resolver bound successfully for network nat"
time="2017-06-30T09:06:32.612053900Z" level=info msg="Loading containers: done."
time="2017-06-30T09:06:32.622054500Z" level=info msg="Daemon has completed initialization"
time="2017-06-30T09:06:32.623055300Z" level=info msg="Docker daemon" commit=3fcee33 graphdriver=windowsfilter version=17
.03.1-ee-3
time="2017-06-30T09:06:32.624054400Z" level=debug msg="Registering routers"
time="2017-06-30T09:06:32.625054900Z" level=debug msg="Registering GET, /containers/{name:.*}/checkpoints"
time="2017-06-30T09:06:32.626053600Z" level=debug msg="Registering POST, /containers/{name:.*}/checkpoints"
time="2017-06-30T09:06:32.626053600Z" level=debug msg="Registering DELETE, /containers/{name}/checkpoints/{checkpoint}"
time="2017-06-30T09:06:32.634054000Z" level=debug msg="Registering HEAD, /containers/{name:.*}/archive"
time="2017-06-30T09:06:32.634054000Z" level=debug msg="Registering GET, /containers/json"
time="2017-06-30T09:06:32.635054200Z" level=debug msg="Registering GET, /containers/{name:.*}/export"
time="2017-06-30T09:06:32.636063500Z" level=debug msg="Registering GET, /containers/{name:.*}/changes"
time="2017-06-30T09:06:32.637054900Z" level=debug msg="Registering GET, /containers/{name:.*}/json"
time="2017-06-30T09:06:32.637054900Z" level=debug msg="Registering GET, /containers/{name:.*}/top"
time="2017-06-30T09:06:32.638054000Z" level=debug msg="Registering GET, /containers/{name:.*}/logs"
time="2017-06-30T09:06:32.639054100Z" level=debug msg="Registering GET, /containers/{name:.*}/stats"
time="2017-06-30T09:06:32.640053600Z" level=debug msg="Registering GET, /containers/{name:.*}/attach/ws"
time="2017-06-30T09:06:32.641054400Z" level=debug msg="Registering GET, /exec/{id:.*}/json"
time="2017-06-30T09:06:32.641054400Z" level=debug msg="Registering GET, /containers/{name:.*}/archive"
time="2017-06-30T09:06:32.643054300Z" level=debug msg="Registering POST, /containers/create"
time="2017-06-30T09:06:32.644054200Z" level=debug msg="Registering POST, /containers/{name:.*}/kill"
time="2017-06-30T09:06:32.645058300Z" level=debug msg="Registering POST, /containers/{name:.*}/pause"
time="2017-06-30T09:06:32.645058300Z" level=debug msg="Registering POST, /containers/{name:.*}/unpause"
time="2017-06-30T09:06:32.646054000Z" level=debug msg="Registering POST, /containers/{name:.*}/restart"
time="2017-06-30T09:06:32.647054700Z" level=debug msg="Registering POST, /containers/{name:.*}/start"
time="2017-06-30T09:06:32.647054700Z" level=debug msg="Registering POST, /containers/{name:.*}/stop"
time="2017-06-30T09:06:32.648054000Z" level=debug msg="Registering POST, /containers/{name:.*}/wait"
time="2017-06-30T09:06:32.649054100Z" level=debug msg="Registering POST, /containers/{name:.*}/resize"
time="2017-06-30T09:06:32.650054500Z" level=debug msg="Registering POST, /containers/{name:.*}/attach"
time="2017-06-30T09:06:32.651054100Z" level=debug msg="Registering POST, /containers/{name:.*}/copy"
time="2017-06-30T09:06:32.651054100Z" level=debug msg="Registering POST, /containers/{name:.*}/exec"
time="2017-06-30T09:06:32.653054400Z" level=debug msg="Registering POST, /exec/{name:.*}/start"
time="2017-06-30T09:06:32.654054100Z" level=debug msg="Registering POST, /exec/{name:.*}/resize"
time="2017-06-30T09:06:32.655059900Z" level=debug msg="Registering POST, /containers/{name:.*}/rename"
time="2017-06-30T09:06:32.655059900Z" level=debug msg="Registering POST, /containers/{name:.*}/update"
time="2017-06-30T09:06:32.656056400Z" level=debug msg="Registering POST, /containers/prune"
time="2017-06-30T09:06:32.657054000Z" level=debug msg="Registering PUT, /containers/{name:.*}/archive"
time="2017-06-30T09:06:32.658053900Z" level=debug msg="Registering DELETE, /containers/{name:.*}"
time="2017-06-30T09:06:32.658053900Z" level=debug msg="Registering GET, /images/json"
time="2017-06-30T09:06:32.659054000Z" level=debug msg="Registering GET, /images/search"
time="2017-06-30T09:06:32.660060300Z" level=debug msg="Registering GET, /images/get"
time="2017-06-30T09:06:32.660060300Z" level=debug msg="Registering GET, /images/{name:.*}/get"
time="2017-06-30T09:06:32.662053600Z" level=debug msg="Registering GET, /images/{name:.*}/history"
time="2017-06-30T09:06:32.673054600Z" level=debug msg="Registering GET, /images/{name:.*}/json"
time="2017-06-30T09:06:32.674054800Z" level=debug msg="Registering POST, /commit"
time="2017-06-30T09:06:32.674054800Z" level=debug msg="Registering POST, /images/load"
time="2017-06-30T09:06:32.675054000Z" level=debug msg="Registering POST, /images/create"
time="2017-06-30T09:06:32.676054400Z" level=debug msg="Registering POST, /images/{name:.*}/push"
time="2017-06-30T09:06:32.677054500Z" level=debug msg="Registering POST, /images/{name:.*}/tag"
time="2017-06-30T09:06:32.677054500Z" level=debug msg="Registering POST, /images/prune"
time="2017-06-30T09:06:32.678054300Z" level=debug msg="Registering DELETE, /images/{name:.*}"
time="2017-06-30T09:06:32.679054400Z" level=debug msg="Registering OPTIONS, /{anyroute:.*}"
time="2017-06-30T09:06:32.680054000Z" level=debug msg="Registering GET, /_ping"
time="2017-06-30T09:06:32.680054000Z" level=debug msg="Registering GET, /events"
time="2017-06-30T09:06:32.681054300Z" level=debug msg="Registering GET, /info"
time="2017-06-30T09:06:32.682054000Z" level=debug msg="Registering GET, /version"
time="2017-06-30T09:06:32.684054000Z" level=debug msg="Registering GET, /system/df"
time="2017-06-30T09:06:32.684054000Z" level=debug msg="Registering POST, /auth"
time="2017-06-30T09:06:32.685054100Z" level=debug msg="Registering GET, /volumes"
time="2017-06-30T09:06:32.686054600Z" level=debug msg="Registering GET, /volumes/{name:.*}"
time="2017-06-30T09:06:32.686054600Z" level=debug msg="Registering POST, /volumes/create"
time="2017-06-30T09:06:32.687054300Z" level=debug msg="Registering POST, /volumes/prune"
time="2017-06-30T09:06:32.688055100Z" level=debug msg="Registering DELETE, /volumes/{name:.*}"
time="2017-06-30T09:06:32.688055100Z" level=debug msg="Registering POST, /build"
time="2017-06-30T09:06:32.689054200Z" level=debug msg="Registering POST, /swarm/init"
time="2017-06-30T09:06:32.690054900Z" level=debug msg="Registering POST, /swarm/join"
time="2017-06-30T09:06:32.690054900Z" level=debug msg="Registering POST, /swarm/leave"
time="2017-06-30T09:06:32.692054900Z" level=debug msg="Registering GET, /swarm"
time="2017-06-30T09:06:32.693055200Z" level=debug msg="Registering GET, /swarm/unlockkey"
time="2017-06-30T09:06:32.694054800Z" level=debug msg="Registering POST, /swarm/update"
time="2017-06-30T09:06:32.694054800Z" level=debug msg="Registering POST, /swarm/unlock"
time="2017-06-30T09:06:32.695054300Z" level=debug msg="Registering GET, /services"
time="2017-06-30T09:06:32.696055100Z" level=debug msg="Registering GET, /services/{id}"
time="2017-06-30T09:06:32.696055100Z" level=debug msg="Registering POST, /services/create"
time="2017-06-30T09:06:32.697054300Z" level=debug msg="Registering POST, /services/{id}/update"
time="2017-06-30T09:06:32.698054400Z" level=debug msg="Registering DELETE, /services/{id}"
time="2017-06-30T09:06:32.699054000Z" level=debug msg="Registering GET, /services/{id}/logs"
time="2017-06-30T09:06:32.699054000Z" level=debug msg="Registering GET, /nodes"
time="2017-06-30T09:06:32.700054500Z" level=debug msg="Registering GET, /nodes/{id}"
time="2017-06-30T09:06:32.708054300Z" level=debug msg="Registering DELETE, /nodes/{id}"
time="2017-06-30T09:06:32.709054600Z" level=debug msg="Registering POST, /nodes/{id}/update"
time="2017-06-30T09:06:32.710054300Z" level=debug msg="Registering GET, /tasks"
time="2017-06-30T09:06:32.711054700Z" level=debug msg="Registering GET, /tasks/{id}"
time="2017-06-30T09:06:32.712054600Z" level=debug msg="Registering GET, /secrets"
time="2017-06-30T09:06:32.712054600Z" level=debug msg="Registering POST, /secrets/create"
time="2017-06-30T09:06:32.713055100Z" level=debug msg="Registering DELETE, /secrets/{id}"
time="2017-06-30T09:06:32.714055100Z" level=debug msg="Registering GET, /secrets/{id}"
time="2017-06-30T09:06:32.715054500Z" level=debug msg="Registering POST, /secrets/{id}/update"
time="2017-06-30T09:06:32.715054500Z" level=debug msg="Registering GET, /plugins"
time="2017-06-30T09:06:32.716054600Z" level=debug msg="Registering GET, /plugins/{name:.*}/json"
time="2017-06-30T09:06:32.717054500Z" level=debug msg="Registering GET, /plugins/privileges"
time="2017-06-30T09:06:32.718054200Z" level=debug msg="Registering DELETE, /plugins/{name:.*}"
time="2017-06-30T09:06:32.718054200Z" level=debug msg="Registering POST, /plugins/{name:.*}/enable"
time="2017-06-30T09:06:32.720054900Z" level=debug msg="Registering POST, /plugins/{name:.*}/disable"
time="2017-06-30T09:06:32.721055100Z" level=debug msg="Registering POST, /plugins/pull"
time="2017-06-30T09:06:32.721055100Z" level=debug msg="Registering POST, /plugins/{name:.*}/push"
time="2017-06-30T09:06:32.722054500Z" level=debug msg="Registering POST, /plugins/{name:.*}/upgrade"
time="2017-06-30T09:06:32.723054500Z" level=debug msg="Registering POST, /plugins/{name:.*}/set"
time="2017-06-30T09:06:32.724054300Z" level=debug msg="Registering POST, /plugins/create"
time="2017-06-30T09:06:32.724054300Z" level=debug msg="Registering GET, /networks"
time="2017-06-30T09:06:32.725054500Z" level=debug msg="Registering GET, /networks/"
time="2017-06-30T09:06:32.726054900Z" level=debug msg="Registering GET, /networks/{id:.+}"
time="2017-06-30T09:06:32.727054600Z" level=debug msg="Registering POST, /networks/create"
time="2017-06-30T09:06:32.728055400Z" level=debug msg="Registering POST, /networks/{id:.*}/connect"
time="2017-06-30T09:06:32.728055400Z" level=debug msg="Registering POST, /networks/{id:.*}/disconnect"
time="2017-06-30T09:06:32.730055000Z" level=debug msg="Registering POST, /networks/prune"
time="2017-06-30T09:06:32.731054800Z" level=debug msg="Registering DELETE, /networks/{id:.*}"
time="2017-06-30T09:06:32.732054300Z" level=info msg="API listen on //./pipe/docker_engine"
time="2017-06-30T09:06:32.733054300Z" level=debug msg="Stackdump - waiting signal at Global\\docker-daemon-1168"
time="2017-06-30T09:06:32.735053400Z" level=debug msg="Config reload - waiting signal at Global\\docker-daemon-config-11
68"
time="2017-06-30T09:08:08.895891700Z" level=debug msg="Calling GET /_ping"
time="2017-06-30T09:08:08.898893400Z" level=debug msg="Calling POST /v1.27/containers/create"
time="2017-06-30T09:08:08.898893400Z" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":false,\"AttachStdout\
":true,\"Cmd\":[\"-d\",\"overlay\",\"myoverlay\"],\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":[],\"HostConfig\":{\"AutoRem
ove\":false,\"Binds\":null,\"BlkioDeviceReadBps\":null,\"BlkioDeviceReadIOps\":null,\"BlkioDeviceWriteBps\":null,\"BlkioDevice
WriteIOps\":null,\"BlkioWeight\":0,\"BlkioWeightDevice\":null,\"CapAdd\":null,\"CapDrop\":null,\"Cgroup\":\"\",\"CgroupParent\
":\"\",\"ConsoleSize\":[0,0],\"ContainerIDFile\":\"\",\"CpuCount\":0,\"CpuPercent\":0,\"CpuPeriod\":0,\"CpuQuota\":0,\"CpuReal
timePeriod\":0,\"CpuRealtimeRuntime\":0,\"CpuShares\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"DeviceCgroupRules\":null,\"D
evices\":[],\"DiskQuota\":0,\"Dns\":[],\"DnsOptions\":[],\"DnsSearch\":[],\"ExtraHosts\":null,\"GroupAdd\":null,\"IOMaximumBan
dwidth\":0,\"IOMaximumIOps\":0,\"IpcMode\":\"\",\"Isolation\":\"\",\"KernelMemory\":0,\"Links\":null,\"LogConfig\":{\"Config\"
:{},\"Type\":\"\"},\"Memory\":0,\"MemoryReservation\":0,\"MemorySwap\":0,\"MemorySwappiness\":-1,\"NanoCpus\":0,\"NetworkMode\
":\"default\",\"OomKillDisable\":false,\"OomScoreAdj\":0,\"PidMode\":\"\",\"PidsLimit\":0,\"PortBindings\":{},\"Privileged\":f
alse,\"PublishAllPorts\":false,\"ReadonlyRootfs\":false,\"RestartPolicy\":{\"MaximumRetryCount\":0,\"Name\":\"no\"},\"Security
Opt\":null,\"ShmSize\":0,\"UTSMode\":\"\",\"Ulimits\":null,\"UsernsMode\":\"\",\"VolumeDriver\":\"\",\"VolumesFrom\":null},\"H
ostname\":\"\",\"Image\":\"network\",\"Labels\":{},\"NetworkingConfig\":{\"EndpointsConfig\":{}},\"OnBuild\":null,\"OpenStdin\
":false,\"StdinOnce\":false,\"Tty\":false,\"User\":\"\",\"Volumes\":{},\"WorkingDir\":\"\"}"
time="2017-06-30T09:08:08.899893100Z" level=error msg="Handler for POST /v1.27/containers/create returned error: No such image
: network:latest"
time="2017-06-30T09:08:08.901893000Z" level=debug msg="Calling GET /v1.27/info"
time="2017-06-30T09:08:08.914892900Z" level=debug msg="Calling POST /v1.27/images/create?fromImage=network&tag=latest"
time="2017-06-30T09:08:08.914892900Z" level=debug msg="Trying to pull network from https://registry-1.docker.io v2"
time="2017-06-30T09:08:09.977584300Z" level=error msg="Not continuing with pull after error: errors:\ndenied: requested access
to the resource is denied\nunauthorized: authentication required\n"
time="2017-06-30T09:08:09.978545400Z" level=info msg="Ignoring extra error returned from registry: unauthorized: authenticatio
n required"
time="2017-06-30T09:08:09.978545400Z" level=info msg="Translating \"denied: requested access to the resource is denied\" to \"
repository network not found: does not exist or no pull access\""
time="2017-06-30T09:08:09.978545400Z" level=error msg="Handler for POST /v1.27/images/create returned error: repository networ
k not found: does not exist or no pull access" Once again here is the debug output of the network image pull: I have checked if there is any block on outgoing traffic but I don't thik this is an issue - What is the meaning of: unauthorized: authentication required in the debug output above - How do I troubleshoot this further? Many Thanks for your help! |
@EM1L the correct command to create a network is |
@friism - Thanks! Here I go again - this time I nuked the Azure VM and started fresh, because there were so many things i tried that eventually I lost my confidence in the docker install - here is the output - the error seem to be persistent:
Docker version:
Docker info:
Docker networks & host ip config:
I am at a dead end since I explored every option to get to the bottom of this. At present I am transcribing my powershell session to have a good trail. Let me know what else I can try next? |
@EM1L -- Before you can create an overlay network, your host needs to be running in swarm mode. Initialize your host as a swarm manager with this command:
Then try creating the overlay network:
Our docs on this have more explanation: |
@kallie-b - you are right I had no idea about the swarm mode - thanks.
It appears the network creation fails... Please help! |
Assuming you executed the commands to initialize your swarm and create an overlay network exactly as I specified above, this should have worked. So I suspect you have something blocking overlay network creation on your system. Can you try running |
Actually I am not trying to create overlay network but simply running docker compose file:
the output I get:
docker networks & ip config:
|
+1 Having the same issue. Already run cleanup script with
Only one node out of 3 experiencing this issue. I can see the difference is that on this node Switch named |
I found reason to "The parameter is incorrect" error on overlay network creating. You can see my troubleshooting log on here: moby/moby#32935 (comment) I also just created issue to libnetwork project to provide better validation to these: moby/libnetwork#1843 |
In the mean time, I installed July patch on Server2 and rebooted and now it's broken as well with the same error as well. So swarm of 3 nodes now have 2 nodes broken with the same error and seems to me the same symptomps (missing transparent NIC, missing external switch). Run all clean up script on Server2 with no avail. |
@artisticcheese Will you provide the output of |
Server1 does not have docker or containers feature installed anymore but still registering NetNat. IPconfig is below
Server 2 is live production swarm worker node which can not launch any containers
docker network
|
According to your output it doesn't look like you have a transparent network that could be blocking network creation. Could you please run our logging script with no arguments (we're just getting info for now), zip the resulting folder of logs, and send it to us at sdn_feedback@microsoft.com? |
@artisticcheese Let's take a closer look at your machines as well. Replied on other thread to ask for some machine logs. |
Follow up: Issue seems to be solved. We walked through the manual cleanup steps that should be covered by our HNS logging script. For some reason, in this case the script did not complete the steps as expected, so they had to be executed manually. I will follow up on this, as an update to the script is likely required. Here are the manual instructions that we completed to perform a system cleanup and ultimately solve the problem:
|
I got a similar issue, when starting a container it says that it could not create the endpoint as the object already existed. And trying to create a network gave plug-in not found. This was on Windows 10 1709. After Stopping the services (hns and docker), deleting hns.data, starting the services again. And then performing the .\CleanupContainerHostNetworking.ps1 -Cleanup -ForceDeleteAllSwitches . Solved it for me. Thanks! |
Problem : Error response from daemon: HNS failed with error : The parameter is incorrect. Solution: PS C:\Users\Administrator> Remove-NetNat Confirm |
.\CleanupContainerHostNetworking.ps1 -Cleanup -ForceDeleteAllSwitches solved my problems with windows containers being unable to access the network (dns problems). Thank you so much!! |
I'm closing this issue as it has become a bit of collect all windows container networking issue and it looks like the original issue was solved as well. We no longer support Docker for Windows (the application) on Windows Server:
|
working fine |
This last piece of advice is basically "reset to factory settings".... |
Closed issues are locked after 30 days of inactivity. 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. |
Expected behavior
Running docker network create would create a docker network
Is there a way to reset the HNS network or all of it back to factory defaults or something? It was working at one point, but no longer works.
Actual behavior
docker network create -d transparent mynet fails HNS failed with error : The Parameter is incorrect.
docker compose up -d without any parameters fails with HNS failed with error : The parameter is incorrect.
Information
I have tried uninstalling docker numerous times, i have removed the containers feature numerous time, i have rebooted between installs numerous times. I have uninstalled both then deleted the docker folder under ProgramData after taking ownership of all files. I uninstalled all then deleted the docker folders under program files.
I tried running CleanupContainerHostNetworking.ps1 with and with the force command
I have tried running numerous powershell scripts which say
I was at the point where the docker service wouldn't start, however I ran some powershell scripts to remove container networks and i am able to start the docker service again.
I have a WIndows Server Standard 2016 VM on the same machine and docker network create works just fine on it, I am having issues with it on the host
docker run -itd -p 9064:9064 -e PORT=9064 docker.<myhost.com>/test/apis/temp
Steps to reproduce the behavior
I am not sure how to get it to the state I am in, but cant get docker to do any networking.
It seems like most commands I run involving docker network fail with HNS failed with error :
The text was updated successfully, but these errors were encountered: