{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27423","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27423/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27423/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27423/events","html_url":"https://github.com/docker/docker/issues/27423","id":183276054,"number":27423,"title":"Exception when calling docker daemon commands in Windows","user":{"login":"clns","id":687922,"avatar_url":"https://avatars.githubusercontent.com/u/687922?v=3","gravatar_id":"","url":"https://api.github.com/users/clns","html_url":"https://github.com/clns","followers_url":"https://api.github.com/users/clns/followers","following_url":"https://api.github.com/users/clns/following{/other_user}","gists_url":"https://api.github.com/users/clns/gists{/gist_id}","starred_url":"https://api.github.com/users/clns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clns/subscriptions","organizations_url":"https://api.github.com/users/clns/orgs","repos_url":"https://api.github.com/users/clns/repos","events_url":"https://api.github.com/users/clns/events{/privacy}","received_events_url":"https://api.github.com/users/clns/received_events","type":"User","site_admin":false},"labels":[{"id":190258329,"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false},{"id":161101581,"url":"https://api.github.com/repos/docker/docker/labels/platform/windows","name":"platform/windows","color":"F6FBFF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2016-10-16T16:30:35Z","updated_at":"2016-12-21T08:17:28Z","closed_at":null,"body":"### Actual behavior\n\nDocker throws an exception everytime I run a command that accesses the daemon (e.g. `docker -v` works since it's client-side only).\n### Information\n- Diagnostic ID: AD497577-51CA-4C56-B6F8-08A16B9710EC/2016-10-11_08-39-38\n- Second Diagnostic ID: D5D7C5E8-58B0-4E45-A45D-DFED839BEFB1/2016-10-11_14-50-44\n- a reproducible case: it happens everytime, cannot use Docker at this moment\n- host distribution and version (Windows version, build number, etc): Microsoft Windows 10 Pro, Version   10.0.14393 Build 14393\n### Steps to reproduce the behavior\n\n``` powershell\n$ docker version\nException 0xc000001d 0x0 0x0 0x18000890c\nPC=0x18000890c\n\nsyscall.Syscall(0x7ffb27dadc40, 0x2, 0x274, 0x3, 0x0, 0x264, 0x0, 0x0)\n        /usr/local/go/src/runtime/syscall_windows.go:163 +0x5c\ngithub.com/Microsoft/go-winio.setFileCompletionNotificationModes(0x274, 0x203, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/zsyscall.go:88 +0x70\ngithub.com/Microsoft/go-winio.makeWin32File(0x274, 0xc08202f6e8, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:76 +0xf8\ngithub.com/Microsoft/go-winio.DialPipe(0xc0820a9148, 0x16, 0xc08202f870, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/pipe.go:186 +0x81d\ngithub.com/docker/go-connections/sockets.DialPipe(0xc0820a9148, 0x16, 0x773594000, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/go-connections/sockets/sockets_windows.go:12 +0x54\ngithub.com/docker/go-connections/sockets.ConfigureTransport.func2(0xced7b0, 0x3, 0xc0822fd060, 0x19, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/go-connections/sockets/sockets.go:29 +0x6e\nnet/http.(*Transport).dial(0xc0820b06c0, 0xced7b0, 0x3, 0xc0822fd060, 0x19, 0x0, 0x0, 0x0, 0x0)\n        /usr/local/go/src/net/http/transport.go:662 +0x9d\nnet/http.(*Transport).dialConn(0xc0820b06c0, 0x0, 0xcea578, 0x4, 0xc0822fd060, 0x19, 0x0, 0x0, 0x0)\n        /usr/local/go/src/net/http/transport.go:765 +0x1e44\nnet/http.(*Transport).getConn.func4(0xc0820b06c0, 0x0, 0xcea578, 0x4, 0xc0822fd060, 0x19, 0xc08230c6c0)\n        /usr/local/go/src/net/http/transport.go:709 +0x6d\ncreated by net/http.(*Transport).getConn\n        /usr/local/go/src/net/http/transport.go:711 +0x269\n\ngoroutine 1 [select]:\ngithub.com/docker/engine-api/client/transport/cancellable.Do(0x2be86f0, 0xc082008d88, 0x2bed900, 0xc0822fc880, 0xc082056700, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go:56 +0x4a4\ngithub.com/docker/engine-api/client.(*Client).sendClientRequest(0xc08230c420, 0x2be86f0, 0xc082008d88, 0xce5800, 0x3, 0xcf2180, 0x8, 0x0, 0x0, 0x0, ...)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go:106 +0x510\ngithub.com/docker/engine-api/client.(*Client).sendRequest(0xc08230c420, 0x2be86f0, 0xc082008d88, 0xce5800, 0x3, 0xcf2180, 0x8, 0x0, 0x0, 0x0, ...)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go:75 +0x2e3\ngithub.com/docker/engine-api/client.(*Client).get(0xc08230c420, 0x2be86f0, 0xc082008d88, 0xcf2180, 0x8, 0x0, 0x0, 0xc08230a900, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go:33 +0xad\ngithub.com/docker/engine-api/client.(*Client).ServerVersion(0xc08230c420, 0x2be86f0, 0xc082008d88, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/version.go:12 +0xa1\ngithub.com/docker/docker/api/client/system.runVersion(0xc08206a510, 0xc0823005a0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/api/client/system/version.go:87 +0x41c\ngithub.com/docker/docker/api/client/system.NewVersionCommand.func1(0xc082307200, 0x113d5e8, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/api/client/system/version.go:49 +0x3c\ngithub.com/spf13/cobra.(*Command).execute(0xc082307200, 0x113d5e8, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/spf13/cobra/command.go:593 +0x705\ngithub.com/spf13/cobra.(*Command).ExecuteC(0xc08206d8c0, 0xc082307200, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/spf13/cobra/command.go:683 +0x563\ngithub.com/spf13/cobra.(*Command).Execute(0xc08206d8c0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/spf13/cobra/command.go:642 +0x34\ngithub.com/docker/docker/cli/cobraadaptor.CobraAdaptor.run(0xc08206d8c0, 0xc08206a510, 0xc0820081e0, 0x7, 0xc082004690, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/cli/cobraadaptor/adaptor.go:118 +0x266\ngithub.com/docker/docker/cli/cobraadaptor.CobraAdaptor.Command.func1(0xc082004690, 0x0, 0x0, 0x0, 0x0)\n        /go/src/github.com/docker/docker/cli/cobraadaptor/adaptor.go:126 +0x93\ngithub.com/docker/docker/cli.(*Cli).Run(0xc0822fab10, 0xc082004690, 0x1, 0x1, 0x0, 0x0)\n        /go/src/github.com/docker/docker/cli/cli.go:81 +0x352\nmain.main()\n        /go/src/github.com/docker/docker/cmd/docker/docker.go:72 +0x4b1\n\ngoroutine 5 [syscall]:\nos/signal.signal_recv(0x0)\n        /usr/local/go/src/runtime/sigqueue.go:116 +0x139\nos/signal.loop()\n        /usr/local/go/src/os/signal/signal_unix.go:22 +0x1f\ncreated by os/signal.init.1\n        /usr/local/go/src/os/signal/signal_unix.go:28 +0x3e\n\ngoroutine 7 [select]:\nnet/http.(*Transport).getConn(0xc0820b06c0, 0xc082056700, 0x0, 0xcea578, 0x4, 0xc0822fd060, 0x19, 0x0, 0x0, 0x0)\n        /usr/local/go/src/net/http/transport.go:714 +0x4f6\nnet/http.(*Transport).RoundTrip(0xc0820b06c0, 0xc082056700, 0xc0820b06c0, 0x0, 0x0)\n        /usr/local/go/src/net/http/transport.go:314 +0x7f0\nnet/http.send(0xc082056700, 0x2be44e0, 0xc0820b06c0, 0x0, 0x0, 0x0, 0xc08230e740, 0x0, 0x0)\n        /usr/local/go/src/net/http/client.go:260 +0x6be\nnet/http.(*Client).send(0xc0822faf30, 0xc082056700, 0x0, 0x0, 0x0, 0xc839a0, 0x0, 0x0)\n        /usr/local/go/src/net/http/client.go:155 +0x18c\nnet/http.(*Client).doFollowingRedirects(0xc0822faf30, 0xc082056700, 0xe69930, 0x0, 0x0, 0x0)\n        /usr/local/go/src/net/http/client.go:475 +0x8ab\nnet/http.(*Client).Do(0xc0822faf30, 0xc082056700, 0x0, 0x0, 0x0)\n        /usr/local/go/src/net/http/client.go:188 +0x106\ngithub.com/docker/engine-api/client/transport/cancellable.Do.func1(0x2bed900, 0xc0822fc880, 0xc082056700, 0xc08230c660)\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go:49 +0x3c\ncreated by github.com/docker/engine-api/client/transport/cancellable.Do\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go:52 +0x106\n\ngoroutine 9 [syscall, locked to thread]:\nsyscall.Syscall6(0x7ffb27da6bf0, 0x5, 0x264, 0xc08231bf54, 0xc08231bf58, 0xc08231bf60, 0xffffffff, 0x0, 0x1, 0x1, ...)\n        /usr/local/go/src/runtime/syscall_windows.go:174 +0x5c\ngithub.com/Microsoft/go-winio.getQueuedCompletionStatus(0x264, 0xc08231bf54, 0xc08231bf58, 0xc08231bf60, 0xffffffff, 0x0, 0x0)\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/zsyscall.go:76 +0xb1\ngithub.com/Microsoft/go-winio.ioCompletionProcessor(0x264)\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:127 +0x7c\ncreated by github.com/Microsoft/go-winio.initIo\n        /go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:55 +0xb3\nrax     0x0\nrbx     0x111fe08\nrcx     0x274\nrdi     0x256000\nrsi     0xc08202f5f8\nrbp     0x0\nrsp     0x8fd88\nr8      0x1\nr9      0x0\nr10     0x274\nr11     0x13c4d48\nr12     0x2\nr13     0xe66316\nr14     0x3\nr15     0x8\nrip     0x18000890c\nrflags  0x10246\ncs      0x33\nfs      0x53\ngs      0x2b\n```\n### Things I tried\n\nI tried re-installing docker, ran \"_Reset to factory defaults_\", restart, nothing worked, I get the same exception all the time.\nAlso tried switching from beta to stable and back to beta, nothing changes here as well.\nI'm using PowerShell (with and without Administrator), and also tried cmd.exe, all the same.\n### Go - Windows issue\n\nApparently this is a Go - Windows issue, and it's actually reported in a few places like https://github.com/syncthing/syncthing/issues/3432 https://github.com/golang/go/issues/13541. I think this is related to `kernel32.dll`, and the problem is originating in [Microsoft/go-winio:zsyscall.go#L88](https://github.com/Microsoft/go-winio/blob/f1a78c8/zsyscall.go#L88)\n\nI encountered a similar Exception when I ran one of my own tools written in Go (using Cgo), but it only happened the first time. Second time (and then on) it worked without problems, unlike `docker` which fails every time the daemon is called by a client command.\n\nI originally reported this issue here https://github.com/docker/for-win/issues/140 but, as noted, I added it here as well for tracking purposes.\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/268462840","html_url":"https://github.com/docker/docker/issues/27423#issuecomment-268462840","issue_url":"https://api.github.com/repos/docker/docker/issues/27423","id":268462840,"user":{"login":"madsoulswe","id":7071187,"avatar_url":"https://avatars.githubusercontent.com/u/7071187?v=3","gravatar_id":"","url":"https://api.github.com/users/madsoulswe","html_url":"https://github.com/madsoulswe","followers_url":"https://api.github.com/users/madsoulswe/followers","following_url":"https://api.github.com/users/madsoulswe/following{/other_user}","gists_url":"https://api.github.com/users/madsoulswe/gists{/gist_id}","starred_url":"https://api.github.com/users/madsoulswe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madsoulswe/subscriptions","organizations_url":"https://api.github.com/users/madsoulswe/orgs","repos_url":"https://api.github.com/users/madsoulswe/repos","events_url":"https://api.github.com/users/madsoulswe/events{/privacy}","received_events_url":"https://api.github.com/users/madsoulswe/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T08:17:28Z","updated_at":"2016-12-21T08:17:28Z","body":"For me 1.13.0-rc3-beta32.1 (build 4d92237)  works with Windows 10 Pro - 10.0.14393\r\nhttps://docs.docker.com/docker-for-windows/release-notes/#/beta-321-release-notes-2016-12-09-1130-rc3-beta321"}}
{"actor":{"display_login":"madsoulswe"}}