{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-py/issues/305","labels_url":"https://api.github.com/repos/docker/docker-py/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-py/issues/305/comments","events_url":"https://api.github.com/repos/docker/docker-py/issues/305/events","html_url":"https://github.com/docker/docker-py/issues/305","id":41287174,"number":305,"title":"mem_limit doesn't work when it have specific units","user":{"login":"linlinlinlin","id":8558312,"avatar_url":"https://avatars.githubusercontent.com/u/8558312?v=3","gravatar_id":"","url":"https://api.github.com/users/linlinlinlin","html_url":"https://github.com/linlinlinlin","followers_url":"https://api.github.com/users/linlinlinlin/followers","following_url":"https://api.github.com/users/linlinlinlin/following{/other_user}","gists_url":"https://api.github.com/users/linlinlinlin/gists{/gist_id}","starred_url":"https://api.github.com/users/linlinlinlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linlinlinlin/subscriptions","organizations_url":"https://api.github.com/users/linlinlinlin/orgs","repos_url":"https://api.github.com/users/linlinlinlin/repos","events_url":"https://api.github.com/users/linlinlinlin/events{/privacy}","received_events_url":"https://api.github.com/users/linlinlinlin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-08-27T14:09:08Z","updated_at":"2015-10-19T19:34:13Z","closed_at":"2014-08-27T19:37:19Z","body":"When I set this settings to create_container API.\r\nUsing `docker inspect` to check memory setting is still 0.\r\ndocker-py version: 0.4\r\n```\r\n{'command': None,\r\n 'cpu_shares': None,\r\n 'detach': True,\r\n 'mem_limit': u'100m',\r\n 'name': u'Test',\r\n 'user': None,\r\n 'working_dir': None}\r\n```\r\nIf I change the value without unit. It works.\r\n```\r\n{'command': None,\r\n 'cpu_shares': None,\r\n 'detach': True,\r\n 'mem_limit': u'1000000',\r\n 'name': u'Test',\r\n 'user': None,\r\n 'working_dir': None}\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker-py/issues/comments/149321740","html_url":"https://github.com/docker/docker-py/issues/305#issuecomment-149321740","issue_url":"https://api.github.com/repos/docker/docker-py/issues/305","id":149321740,"user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:34:13Z","updated_at":"2015-10-19T19:34:13Z","body":"The issue is more than a year old, there have been many releases since then. What are you trying to do and what error are you getting?"}}