{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/1094","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/1094/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/1094/events","html_url":"https://github.com/docker/for-win/issues/1094","id":257705570,"number":1094,"title":"Cannot run container with more than 3GB memory","user":{"login":"apetres","id":24585638,"avatar_url":"https://avatars0.githubusercontent.com/u/24585638?v=4","gravatar_id":"","url":"https://api.github.com/users/apetres","html_url":"https://github.com/apetres","followers_url":"https://api.github.com/users/apetres/followers","following_url":"https://api.github.com/users/apetres/following{/other_user}","gists_url":"https://api.github.com/users/apetres/gists{/gist_id}","starred_url":"https://api.github.com/users/apetres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apetres/subscriptions","organizations_url":"https://api.github.com/users/apetres/orgs","repos_url":"https://api.github.com/users/apetres/repos","events_url":"https://api.github.com/users/apetres/events{/privacy}","received_events_url":"https://api.github.com/users/apetres/received_events","type":"User","site_admin":false},"labels":[{"id":734880187,"url":"https://api.github.com/repos/docker/for-win/labels/Kind/OS","name":"Kind/OS","color":"1d76db","default":false},{"id":424967597,"url":"https://api.github.com/repos/docker/for-win/labels/area/hyper-v","name":"area/hyper-v","color":"fbca04","default":false},{"id":450573350,"url":"https://api.github.com/repos/docker/for-win/labels/area/wincon","name":"area/wincon","color":"fbca04","default":false},{"id":415755103,"url":"https://api.github.com/repos/docker/for-win/labels/area/windows%2010","name":"area/windows 10","color":"fbca04","default":false},{"id":463833816,"url":"https://api.github.com/repos/docker/for-win/labels/status/2-in-progress","name":"status/2-in-progress","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-09-14T12:43:28Z","updated_at":"2018-03-07T16:14:12Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\n\r\n`docker run -m 5GB microsoft/windowsservercore` creates a container with 5GB memory (the amount can be 4GB or greater)\r\n\r\n### Actual behavior\r\n\r\nAn error message is displayed:\r\n\r\n`C:\\Program Files\\Docker\\Docker\\Resources\\bin\\docker.exe: Error response from daemon: container f6d27506ece6b1135a8d92b142f0e81802046dc3a8c05c2e99c8dfde54679a0e encountered an error during CreateContainer: failure in a Windows system call: The handle is invalid. (0x6).`\r\n\r\n### Information\r\n\r\n  - Diagnostic ID: A19C16A5-CD97-47EF-9F8C-56D98C885C03/2017-09-14_14-30-32\r\n  - Docker version: 17.06.0-ce-rc4\r\n  - OS: Windows 10 Version 1607 Build 14393.1593\r\n  - Memory: 16GB from which at least 10GB was free at the time of reproduction\r\n \r\nIf the memory specified is less or equal then 3GB, the container runs successfully, so I don't think this is a network-related issue.\r\nI tried to reproduce the issue on another machine with the same version of Docker, without success (meaning that I could create a container with more than 3GB memory). \r\n\r\nCould you recommend a way of debugging this issue?\r\n(Side question: could you recommend a way to obtain more detailed error message from docker? In this case it would help if I know what kind of handle is invalid)\r\n\r\n### Steps to reproduce the behavior\r\n\r\n  1. run `docker run -m 5GB microsoft/windowsservercore`\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/371191200","html_url":"https://github.com/docker/for-win/issues/1094#issuecomment-371191200","issue_url":"https://api.github.com/repos/docker/for-win/issues/1094","id":371191200,"user":{"login":"DominikGebhart","id":18313847,"avatar_url":"https://avatars0.githubusercontent.com/u/18313847?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikGebhart","html_url":"https://github.com/DominikGebhart","followers_url":"https://api.github.com/users/DominikGebhart/followers","following_url":"https://api.github.com/users/DominikGebhart/following{/other_user}","gists_url":"https://api.github.com/users/DominikGebhart/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikGebhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikGebhart/subscriptions","organizations_url":"https://api.github.com/users/DominikGebhart/orgs","repos_url":"https://api.github.com/users/DominikGebhart/repos","events_url":"https://api.github.com/users/DominikGebhart/events{/privacy}","received_events_url":"https://api.github.com/users/DominikGebhart/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T16:14:12Z","updated_at":"2018-03-07T16:14:12Z","author_association":"NONE","body":"Thank you @darrenstahlmsft for the update, this is important information to me. \r\n\r\nI feared this issue is a general instability, which would kill my use-case. Now theres at least a way to work around it by choosing the right Host system.\r\n\r\nI ran into the same issue on a Windows 10 physical machine when trying to set `--memory 3g`. I tested up to 2.25g worked fine, then i hit the timeout on docker run errorcode `0x5b4`.\r\nHyper-V Worker also returns errorcodes0 0x1A, errorcode: 0x61941.\r\n\r\n`Name                                    : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz`\r\n`ProcessorId                             : BFEBFBFF000306A9`\r\n\r\nI assume it doesn't support those hugepages."}}
{"actor":{"display_login":"DominikGebhart"}}