{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker-py/issues/775","labels_url":"https://api.github.com/repos/docker/docker-py/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-py/issues/775/comments","events_url":"https://api.github.com/repos/docker/docker-py/issues/775/events","html_url":"https://github.com/docker/docker-py/issues/775","id":106738678,"number":775,"title":"cpu_shares value can't be float.","user":{"login":"pingz","id":82363,"avatar_url":"https://avatars.githubusercontent.com/u/82363?v=3","gravatar_id":"","url":"https://api.github.com/users/pingz","html_url":"https://github.com/pingz","followers_url":"https://api.github.com/users/pingz/followers","following_url":"https://api.github.com/users/pingz/following{/other_user}","gists_url":"https://api.github.com/users/pingz/gists{/gist_id}","starred_url":"https://api.github.com/users/pingz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingz/subscriptions","organizations_url":"https://api.github.com/users/pingz/orgs","repos_url":"https://api.github.com/users/pingz/repos","events_url":"https://api.github.com/users/pingz/events{/privacy}","received_events_url":"https://api.github.com/users/pingz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T09:49:02Z","updated_at":"2015-09-16T09:49:02Z","closed_at":null,"body":"if I using a float cpu_shares it will throw an exception as below:\r\n\r\n> c.create_container(image='some/image', cpu_shares=0.8)                                                                  \r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/site-packages/docker/client.py\", line 239, in create_container\r\n    return self.create_container_from_config(config, name)\r\n  File \"/usr/lib/python2.7/site-packages/docker/client.py\", line 247, in create_container_from_config\r\n    return self._result(res, True)\r\n  File \"/usr/lib/python2.7/site-packages/docker/clientbase.py\", line 106, in _result\r\n    self._raise_for_status(response)\r\n  File \"/usr/lib/python2.7/site-packages/docker/clientbase.py\", line 102, in _raise_for_status\r\n    raise errors.APIError(e, response, explanation=explanation)\r\ndocker.errors.APIError: 500 Server Error: Internal Server Error (\"json: cannot unmarshal number 0.8 into Go value of type int64\")\r\n\r\ndocker version:\r\n\r\n> Client version: 1.7.1\r\nClient API version: 1.19\r\nPackage Version (client): docker-1.7.1-108.el7.centos.x86_64\r\nGo version (client): go1.4.2\r\nGit commit (client): 3043001/1.7.1\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.7.1\r\nServer API version: 1.19\r\nPackage Version (server): docker-1.7.1-108.el7.centos.x86_64\r\nGo version (server): go1.4.2\r\nGit commit (server): 3043001/1.7.1\r\nOS/Arch (server): linux/amd64\r\n\r\ndocker-py:\r\n\r\n> docker.version\r\n'1.4.0-dev'\r\n\r\nI think it's something about the changes in the Docker API. "}}