{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18550","labels_url":"https://api.github.com/repos/docker/docker/issues/18550/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18550/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18550/events","html_url":"https://github.com/docker/docker/pull/18550","id":121329379,"number":18550,"title":"Don't dereference HostConfig.MemorySwapiness if nil","user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-09T20:14:26Z","updated_at":"2015-12-09T21:11:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/18550","html_url":"https://github.com/docker/docker/pull/18550","diff_url":"https://github.com/docker/docker/pull/18550.diff","patch_url":"https://github.com/docker/docker/pull/18550.patch"},"body":"I ran into a panic a because of this on daemon start.  I was upgrading from 1.9 to 1.10.  I'm not 100% why MemorySwapiness was nil but it seems to be a case you can encounter.  One thing I was not sure is if MemorySwapiness is nil should the value in execdriver.Resources.MemorySwappiness be 0 or something like -1?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/163392975","html_url":"https://github.com/docker/docker/pull/18550#issuecomment-163392975","issue_url":"https://api.github.com/repos/docker/docker/issues/18550","id":163392975,"user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:11:35Z","updated_at":"2015-12-09T21:11:35Z","body":"mmm `runconfig.DecodeHostConfig` could be a better place for this check and set the default :confused: "}}