{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10298","labels_url":"https://api.github.com/repos/docker/docker/issues/10298/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10298/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10298/events","html_url":"https://github.com/docker/docker/pull/10298","id":55258379,"number":10298,"title":"move resource options from Config to hostConfig","user":{"login":"hqhq","id":6415670,"avatar_url":"https://avatars.githubusercontent.com/u/6415670?v=3","gravatar_id":"","url":"https://api.github.com/users/hqhq","html_url":"https://github.com/hqhq","followers_url":"https://api.github.com/users/hqhq/followers","following_url":"https://api.github.com/users/hqhq/following{/other_user}","gists_url":"https://api.github.com/users/hqhq/gists{/gist_id}","starred_url":"https://api.github.com/users/hqhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hqhq/subscriptions","organizations_url":"https://api.github.com/users/hqhq/orgs","repos_url":"https://api.github.com/users/hqhq/repos","events_url":"https://api.github.com/users/hqhq/events{/privacy}","received_events_url":"https://api.github.com/users/hqhq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//project/doc","name":"/project/doc","color":"207de5"},{"url":"https://api.github.com/repos/docker/docker/labels/2-code-review","name":"2-code-review","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/37","html_url":"https://github.com/docker/docker/milestones/1.6.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/37/labels","id":952335,"number":37,"title":"1.6.0","description":"","creator":{"login":"crosbymichael","id":749551,"avatar_url":"https://avatars.githubusercontent.com/u/749551?v=3","gravatar_id":"","url":"https://api.github.com/users/crosbymichael","html_url":"https://github.com/crosbymichael","followers_url":"https://api.github.com/users/crosbymichael/followers","following_url":"https://api.github.com/users/crosbymichael/following{/other_user}","gists_url":"https://api.github.com/users/crosbymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/crosbymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosbymichael/subscriptions","organizations_url":"https://api.github.com/users/crosbymichael/orgs","repos_url":"https://api.github.com/users/crosbymichael/repos","events_url":"https://api.github.com/users/crosbymichael/events{/privacy}","received_events_url":"https://api.github.com/users/crosbymichael/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":12,"state":"open","created_at":"2015-01-26T23:40:13Z","updated_at":"2015-03-10T17:51:06Z","due_on":"2015-03-18T07:00:00Z","closed_at":null},"comments":24,"created_at":"2015-01-23T08:54:03Z","updated_at":"2015-03-11T02:28:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/10298","html_url":"https://github.com/docker/docker/pull/10298","diff_url":"https://github.com/docker/docker/pull/10298.diff","patch_url":"https://github.com/docker/docker/pull/10298.patch"},"body":"Cgroup resources are host dependent, they should be in hostConfig.\r\n\r\nFor backward compatibility, we just copy it to hostConfig, and leave it in\r\nConfig for now, so there is no regressions, but the right way to use this\r\nthrought json is to put it in HostConfig, like:\r\n  {\r\n      \"Hostname\": \"\",\r\n      ...\r\n      \"HostConfig\": {\r\n          \"Memory\": 314572800,\r\n\t  ...\r\n      }\r\n  }\r\n\r\nSigned-off-by: Qiang Huang <h.huangqiang@huawei.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/78189024","html_url":"https://github.com/docker/docker/pull/10298#issuecomment-78189024","issue_url":"https://api.github.com/repos/docker/docker/issues/10298","id":78189024,"user":{"login":"hqhq","id":6415670,"avatar_url":"https://avatars.githubusercontent.com/u/6415670?v=3","gravatar_id":"","url":"https://api.github.com/users/hqhq","html_url":"https://github.com/hqhq","followers_url":"https://api.github.com/users/hqhq/followers","following_url":"https://api.github.com/users/hqhq/following{/other_user}","gists_url":"https://api.github.com/users/hqhq/gists{/gist_id}","starred_url":"https://api.github.com/users/hqhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hqhq/subscriptions","organizations_url":"https://api.github.com/users/hqhq/orgs","repos_url":"https://api.github.com/users/hqhq/repos","events_url":"https://api.github.com/users/hqhq/events{/privacy}","received_events_url":"https://api.github.com/users/hqhq/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T02:28:09Z","updated_at":"2015-03-11T02:28:09Z","body":"@crosbymichael @jfrazelle @LK4D4 @cpuguy83 \r\nRebased again, I squash all commits into one commit, hope that's what you want.\r\n\r\nPlease review this, it have been taken too long (more than 4 months since the original PR), a lot of cgroup improvement are depending on this one, hope we can make some progress soon. Thanks."}}