{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12743","labels_url":"https://api.github.com/repos/docker/docker/issues/12743/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12743/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12743/events","html_url":"https://github.com/docker/docker/issues/12743","id":70665607,"number":12743,"title":"Docker Remote API create and start container failed","user":{"login":"alexeyfrank","id":1286315,"avatar_url":"https://avatars.githubusercontent.com/u/1286315?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyfrank","html_url":"https://github.com/alexeyfrank","followers_url":"https://api.github.com/users/alexeyfrank/followers","following_url":"https://api.github.com/users/alexeyfrank/following{/other_user}","gists_url":"https://api.github.com/users/alexeyfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyfrank/subscriptions","organizations_url":"https://api.github.com/users/alexeyfrank/orgs","repos_url":"https://api.github.com/users/alexeyfrank/repos","events_url":"https://api.github.com/users/alexeyfrank/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyfrank/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-24T11:27:55Z","updated_at":"2015-09-28T14:10:06Z","closed_at":null,"body":"Hi, I have bug. Sometimes when I use docker remote api I can't start container.\r\n\r\nFirst I send POST /v1.17/containers/create?name=container_name, then get 201 response code and container uid.\r\nNext, I send POST /v1.17/containers/{uid}/start and receive 404 response code \"Container not found\". If I do \"docker ps -a | grep {uid}\" in terminal I see this container, and it is not started.\r\n\r\nBut sometimes, I can create and start this container from api. \r\n\r\nDocker info: \r\n\r\n```\r\n\r\nalexey.f@ip-10-0-1-224:~$ docker info\r\nContainers: 2228\r\nImages: 516\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 4976\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nKernel Version: 3.13.0-44-generic\r\nOperating System: Ubuntu 14.04.1 LTS\r\nCPUs: 4\r\nTotal Memory: 7.305 GiB\r\nName: ip-10-0-1-224\r\nID: YN3T:56E2:VDEV:3W7E:M47C:LNM7:O6GX:G3NG:AALK:TD34:5E4F:IMLN\r\nWARNING: No swap limit support\r\n\r\nalexey.f@ip-10-0-1-224:~$ docker version\r\nClient version: 1.6.0\r\nClient API version: 1.18\r\nGo version (client): go1.4.2\r\nGit commit (client): 4749651\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.6.0\r\nServer API version: 1.18\r\nGo version (server): go1.4.2\r\nGit commit (server): 4749651\r\nOS/Arch (server): linux/amd64\r\n\r\n```\r\n\r\nDocker logs for failed run:\r\n\r\n```\r\n\r\nESC[34mINFOESC[0m[580529] POST /v1.17/containers/create?name=ansible_experssjs_exercise-4568\r\nESC[34mINFOESC[0m[580529] +job create(ansible_experssjs_exercise-4568)\r\nYour kernel does not support swap limit capabilities. Limitation discarded.\r\nESC[34mINFOESC[0m[580529] +job log(create, 51ccb5e2cac19b64836555e9dca903c1111e6c59cc817f20078631d8dc1db459, hexletboy/ansible_experssjs_exercise:333)\r\nESC[34mINFOESC[0m[580529] -job log(create, 51ccb5e2cac19b64836555e9dca903c1111e6c59cc817f20078631d8dc1db459, hexletboy/ansible_experssjs_exercise:333) = OK (0)\r\nESC[34mINFOESC[0m[580529] -job create(ansible_experssjs_exercise-4568) = OK (0)\r\nESC[34mINFOESC[0m[580529] POST /v1.17/containers/ansible_experssjs_exercise-4568/start\r\nESC[34mINFOESC[0m[580529] +job start(ansible_experssjs_exercise-4568)\r\nNo such container: ansible_experssjs_exercise-4568\r\nESC[34mINFOESC[0m[580529] -job start(ansible_experssjs_exercise-4568) = ERR (1)\r\nESC[31mERROESC[0m[580529] Handler for POST /containers/{name:.*}/start returned error: No such container: ansible_experssjs_exercise-4568\r\nESC[31mERROESC[0m[580529] HTTP Error: statusCode=404 No such container: ansible_experssjs_exercise-4568\r\n\r\n```\r\n\r\nDocker logs for successful run:\r\n\r\n```\r\n\r\nESC[34mINFOESC[0m[580792] POST /v1.17/containers/create?name=ansible_experssjs_exercise-4568\r\nESC[34mINFOESC[0m[580792] +job create(ansible_experssjs_exercise-4568)\r\nYour kernel does not support swap limit capabilities. Limitation discarded.\r\nESC[34mINFOESC[0m[580792] +job log(create, 81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92da\r\n03da136a22, hexletboy/ansible_experssjs_exercise:333)\r\nESC[34mINFOESC[0m[580792] -job log(create, 81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92da\r\n03da136a22, hexletboy/ansible_experssjs_exercise:333) = OK (0)\r\nESC[34mINFOESC[0m[580792] -job create(ansible_experssjs_exercise-4568) = OK (0)\r\nESC[34mINFOESC[0m[580792] -job containers() = OK (0)\r\nESC[34mINFOESC[0m[580792] POST /v1.17/containers/ansible_experssjs_exercise-4568/start\r\nESC[34mINFOESC[0m[580792] +job start(ansible_experssjs_exercise-4568)\r\nESC[34mINFOESC[0m[580792] +job allocate_interface(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda1\r\n9eb92da03da136a22)\r\nESC[34mINFOESC[0m[580792] -job allocate_interface(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda1\r\n9eb92da03da136a22) = OK (0)\r\nESC[34mINFOESC[0m[580792] +job allocate_port(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92\r\nda03da136a22)\r\nESC[34mINFOESC[0m[580792] -job allocate_port(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92\r\nda03da136a22) = OK (0)\r\nESC[34mINFOESC[0m[580792] +job allocate_port(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92\r\nda03da136a22)\r\nESC[34mINFOESC[0m[580792] -job allocate_port(81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92\r\nda03da136a22) = OK (0)\r\nESC[34mINFOESC[0m[580792] WARNING: Your kernel does not support swap limit capabilities. Limitati\r\non discarded.\r\nESC[34mINFOESC[0m[580792] +job log(start, 81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92da03da136a22, hexletboy/ansible_experssjs_exercise:333)\r\nESC[34mINFOESC[0m[580792] -job log(start, 81f4e1bbfecc7fe72a0b294ff07548e42f759110bbaeda19eb92da03da136a22, hexletboy/ansible_experssjs_exercise:333) = OK (0)\r\nESC[34mINFOESC[0m[580792] -job start(ansible_experssjs_exercise-4568) = OK (0)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/143753231","html_url":"https://github.com/docker/docker/issues/12743#issuecomment-143753231","issue_url":"https://api.github.com/repos/docker/docker/issues/12743","id":143753231,"user":{"login":"PlugIN73","id":708845,"avatar_url":"https://avatars.githubusercontent.com/u/708845?v=3","gravatar_id":"","url":"https://api.github.com/users/PlugIN73","html_url":"https://github.com/PlugIN73","followers_url":"https://api.github.com/users/PlugIN73/followers","following_url":"https://api.github.com/users/PlugIN73/following{/other_user}","gists_url":"https://api.github.com/users/PlugIN73/gists{/gist_id}","starred_url":"https://api.github.com/users/PlugIN73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlugIN73/subscriptions","organizations_url":"https://api.github.com/users/PlugIN73/orgs","repos_url":"https://api.github.com/users/PlugIN73/repos","events_url":"https://api.github.com/users/PlugIN73/events{/privacy}","received_events_url":"https://api.github.com/users/PlugIN73/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T14:10:06Z","updated_at":"2015-09-28T14:10:06Z","body":"Yes, i wait for it."}}