{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25492","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25492/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25492/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25492/events","html_url":"https://github.com/saltstack/salt/issues/25492","id":95475466,"number":25492,"title":"\"docker-py mem_limit has been moved to host_config in API version 1.19\" error","user":{"login":"hernanc","id":216205,"avatar_url":"https://avatars.githubusercontent.com/u/216205?v=3","gravatar_id":"","url":"https://api.github.com/users/hernanc","html_url":"https://github.com/hernanc","followers_url":"https://api.github.com/users/hernanc/followers","following_url":"https://api.github.com/users/hernanc/following{/other_user}","gists_url":"https://api.github.com/users/hernanc/gists{/gist_id}","starred_url":"https://api.github.com/users/hernanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hernanc/subscriptions","organizations_url":"https://api.github.com/users/hernanc/orgs","repos_url":"https://api.github.com/users/hernanc/repos","events_url":"https://api.github.com/users/hernanc/events{/privacy}","received_events_url":"https://api.github.com/users/hernanc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Low-Hanging%20Fruit","name":"Low-Hanging Fruit","color":"f7c6c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2482,"closed_issues":2495,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-08-20T23:18:21Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-07-16T16:40:13Z","updated_at":"2015-08-21T05:45:13Z","closed_at":null,"body":"Hello,\r\nI'm trying to set up a Docker container in a Minion and getting this error on docker.installed\r\n```\r\nComment: We did not get any expected answer from docker\r\n              Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/modules/dockerio.py\", line 640, in create_container\r\n                  cpuset=cpuset\r\n                File \"/usr/local/lib/python2.7/dist-packages/docker/client.py\", line 237, in create_container\r\n                  volume_driver\r\n                File \"/usr/local/lib/python2.7/dist-packages/docker/utils/utils.py\", line 546, in create_container_config\r\n                  'mem_limit has been moved to host_config in API version 1.19'\r\n              InvalidVersion: mem_limit has been moved to host_config in API version 1.19\r\n```\r\n\r\nThe error is being triggered in https://github.com/docker/docker-py/blob/master/docker/utils/utils.py#L544\r\n```\r\n        if mem_limit is not None:\r\n            raise errors.InvalidVersion(\r\n                'mem_limit has been moved to host_config in API version 1.19'\r\n            )\r\n```\r\nSo I got around it by adding \"mem_limit: !!null\" to my docker.installed:\r\n```\r\napp-container:\r\n  docker.installed:\r\n    ...\r\n    - mem_limit: !!null\r\n```\r\nHowever, it'd be great to have this fixed. Thanks!\r\n\r\nThe minion has docker-py==1.3.0 installed and this is my master's versions report\r\n```bash\r\n$ salt --versions-report\r\n                  Salt: 2015.5.2\r\n                Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n                Jinja2: 2.7.2\r\n              M2Crypto: 0.21.1\r\n        msgpack-python: 0.3.0\r\n          msgpack-pure: Not Installed\r\n              pycrypto: 2.6.1\r\n               libnacl: Not Installed\r\n                PyYAML: 3.10\r\n                 ioflo: Not Installed\r\n                 PyZMQ: 14.0.1\r\n                  RAET: Not Installed\r\n                   ZMQ: 4.0.4\r\n                  Mako: 0.9.1\r\n Debian source package: 2015.5.2+ds-1trusty1\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/133295505","html_url":"https://github.com/saltstack/salt/issues/25492#issuecomment-133295505","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25492","id":133295505,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T05:45:13Z","updated_at":"2015-08-21T05:45:13Z","body":"@dkiser, thanks for reporting.  What error/conflict are you getting with that version?"}}