{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11764","labels_url":"https://api.github.com/repos/docker/docker/issues/11764/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11764/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11764/events","html_url":"https://github.com/docker/docker/issues/11764","id":64375656,"number":11764,"title":"Container termination events lost in 1.6.0","user":{"login":"burke","id":1284,"avatar_url":"https://avatars.githubusercontent.com/u/1284?v=3","gravatar_id":"","url":"https://api.github.com/users/burke","html_url":"https://github.com/burke","followers_url":"https://api.github.com/users/burke/followers","following_url":"https://api.github.com/users/burke/following{/other_user}","gists_url":"https://api.github.com/users/burke/gists{/gist_id}","starred_url":"https://api.github.com/users/burke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burke/subscriptions","organizations_url":"https://api.github.com/users/burke/orgs","repos_url":"https://api.github.com/users/burke/repos","events_url":"https://api.github.com/users/burke/events{/privacy}","received_events_url":"https://api.github.com/users/burke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/regression","name":"kind/regression","color":"DE6262"}],"state":"open","locked":false,"assignee":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"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":2,"closed_issues":120,"state":"open","created_at":"2015-01-26T23:40:13Z","updated_at":"2015-04-01T21:01:07Z","due_on":"2015-04-07T07:00:00Z","closed_at":null},"comments":18,"created_at":"2015-03-25T21:20:43Z","updated_at":"2015-04-01T22:22:33Z","closed_at":null,"body":"### Summary:\r\n\r\nAfter upgrading to docker 1.6.0, containers cannot be destroyed. The containers run as normal, but the parent process never perceives the container as exited. For example, if I run `docker run --entrypoint=/bin/echo busybox test`, it prints `test` and then hangs indefinitely.\r\n\r\nAttempting to `kill`, `stop`, or `rm -f` a container results in:\r\n\r\n```\r\nError response from daemon: Cannot kill container 52e: [2] Container does not exist: container destroyed\r\nFATA[0000] Error: failed to kill one or more containers\r\n```\r\n\r\nThis only happens on one of the two servers I've upgraded to `1.6.0-rc2` (both of which have the same output for the \"System\" section below). It happens consistently with any combination of parameters to `docker run`. This was also the behaviour with `1.6.0-rc1`.\r\n\r\nI've attached `docker.log` captures for the whole process and attached them to this issue.\r\n\r\nI can capture `strace`s or whatever other instrumentation seems helpful, just ask if you need more, or have some pointers on how I might fix this myself.\r\n\r\n### System:\r\n\r\n```\r\n$ uname -r\r\n3.18.8-031808-generic\r\n$ docker --version\r\nDocker version 1.6.0-rc2, build c5ee149\r\n$ cat /etc/lsb-release | grep DESC\r\nDISTRIB_DESCRIPTION=\"Ubuntu 14.04 LTS\"\r\n```\r\n\r\n### Docker logs\r\n\r\n1) start docker\r\n\r\n```\r\nINFO[0000] +job serveapi(unix:///var/run/docker.sock)\r\nINFO[0000] Listening for HTTP on unix (/var/run/docker.sock)\r\nINFO[0000] +job init_networkdriver()\r\nINFO[0000] -job init_networkdriver() = OK (0)\r\nWARN[0000] mountpoint for memory not found\r\nINFO[0000] Loading containers: start.\r\n................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\r\nINFO[0000] Loading containers: done.\r\nINFO[0000] docker daemon: 1.6.0-rc2 c5ee149; execdriver: native-0.2; graphdriver: overlay\r\nINFO[0000] +job acceptconnections()\r\nINFO[0000] -job acceptconnections() = OK (0)\r\nINFO[0000] Daemon has completed initialization\r\nINFO[0002] GET /v1.18/containers/json\r\nINFO[0002] +job containers()\r\nINFO[0002] -job containers() = OK (0)\r\nINFO[0004] GET /v1.18/containers/json\r\nINFO[0004] +job containers()\r\nINFO[0004] -job containers() = OK (0)\r\nINFO[0009] GET /v1.18/containers/json\r\nINFO[0009] +job containers()\r\nINFO[0009] -job containers() = OK (0)\r\nINFO[0013] GET /v1.18/containers/json\r\nINFO[0013] +job containers()\r\nINFO[0014] -job containers() = OK (0)\r\nINFO[0014] GET /v1.18/containers/json\r\nINFO[0014] +job containers()\r\nINFO[0014] -job containers() = OK (0)\r\n```\r\n\r\n2) `docker run --entrypoint=/bin/echo busybox test`\r\n\r\n```\r\nINFO[0014] POST /v1.18/containers/create\r\nINFO[0014] +job create()\r\nINFO[0014] +job log(create, 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, busybox:latest)\r\nINFO[0014] -job log(create, 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, busybox:latest) = OK (0)\r\nINFO[0014] -job create() = OK (0)\r\nINFO[0014] POST /v1.18/containers/52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8/attach?stderr=1&stdout=1&stream=1\r\nINFO[0014] +job container_inspect(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8)\r\nINFO[0014] -job container_inspect(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8) = OK (0)\r\nINFO[0014] +job attach(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8)\r\nINFO[0014] POST /v1.18/containers/52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8/start\r\nINFO[0014] +job start(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8)\r\nINFO[0014] +job allocate_interface(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8)\r\nINFO[0014] -job allocate_interface(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8) = OK (0)\r\nINFO[0014] +job log(start, 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, busybox:latest)\r\nINFO[0014] -job log(start, 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, busybox:latest) = OK (0)\r\nINFO[0014] GET /images/json?all=False\r\nINFO[0014] +job images()\r\nINFO[0014] -job images() = OK (0)\r\nINFO[0014] GET /images/json?all=True\r\nINFO[0014] +job images()\r\nINFO[0014] -job images() = OK (0)\r\nINFO[0015] GET /containers/json?all=False&size=False\r\nINFO[0015] +job containers()\r\nINFO[0015] -job start(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8) = OK (0)\r\nINFO[0015] -job containers() = OK (0)\r\nWARN[0015] Your kernel does not support OOM notifications: There is no path for \"memory\" in state\r\nINFO[0015] GET /containers/json?all=True&size=False\r\nINFO[0015] +job containers()\r\nINFO[0015] -job containers() = OK (0)\r\nINFO[0015] GET /events?since=1427317521&until=1427317579\r\nINFO[0015] +job events()\r\nINFO[0015] -job events() = OK (0)\r\nINFO[0018] GET /v1.18/containers/json\r\nINFO[0018] +job containers()\r\nINFO[0018] -job containers() = OK (0)\r\nINFO[0020] GET /v1.18/containers/json\r\nINFO[0020] +job containers()\r\nINFO[0020] -job containers() = OK (0)\r\nINFO[0022] GET /v1.18/containers/json\r\nINFO[0022] +job containers()\r\nINFO[0022] -job containers() = OK (0)\r\nINFO[0025] GET /v1.18/containers/json\r\nINFO[0025] +job containers()\r\nINFO[0025] -job containers() = OK (0)\r\n```\r\n\r\n3) Notice that container hasn't terminated yet. Hit `^C` in shell running container.\r\n\r\n```\r\nINFO[0026] POST /v1.18/containers/52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8/kill?signal=INT\r\nINFO[0026] +job kill(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, INT)\r\nCannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nINFO[0026] -job kill(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, INT) = ERR (1)\r\nERRO[0026] Handler for POST /containers/{name:.*}/kill returned error: Cannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nERRO[0026] HTTP Error: statusCode=500 Cannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nINFO[0029] GET /v1.18/containers/json\r\nINFO[0029] +job containers()\r\nINFO[0029] -job containers() = OK (0)\r\nINFO[0032] GET /v1.18/containers/json\r\nINFO[0032] +job containers()\r\nINFO[0032] -job containers() = OK (0)\r\nINFO[0033] POST /v1.18/containers/52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8/kill?signal=HUP\r\nINFO[0033] +job kill(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, HUP)\r\nCannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nINFO[0033] -job kill(52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8, HUP) = ERR (1)\r\nERRO[0033] Handler for POST /containers/{name:.*}/kill returned error: Cannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nERRO[0033] HTTP Error: statusCode=500 Cannot kill container 52e73e5961d5d5a76a5a70e9a9e253af6dc1b5cfa95e8623cc820f46eae52ca8: [2] Container does not exist: container destroyed\r\nINFO[0033] GET /v1.18/containers/json\r\nINFO[0033] +job containers()\r\nINFO[0033] -job containers() = OK (0)\r\nINFO[0034] GET /images/json?all=False\r\nINFO[0034] +job images()\r\nINFO[0034] -job images() = OK (0)\r\nINFO[0034] GET /images/json?all=True\r\nINFO[0034] +job images()\r\nINFO[0034] -job images() = OK (0)\r\nINFO[0034] GET /containers/json?all=False&size=False\r\nINFO[0034] +job containers()\r\nINFO[0034] -job containers() = OK (0)\r\nINFO[0034] GET /containers/json?all=True&size=False\r\nINFO[0034] +job containers()\r\nINFO[0034] -job containers() = OK (0)\r\nINFO[0034] GET /events?since=1427317579&until=1427317598\r\nINFO[0034] +job events()\r\nINFO[0034] -job events() = OK (0)\r\nINFO[0036] GET /v1.18/containers/json\r\nINFO[0036] +job containers()\r\nINFO[0036] -job containers() = OK (0)\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/88652238","html_url":"https://github.com/docker/docker/issues/11764#issuecomment-88652238","issue_url":"https://api.github.com/repos/docker/docker/issues/11764","id":88652238,"user":{"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},"created_at":"2015-04-01T22:22:33Z","updated_at":"2015-04-01T22:22:33Z","body":"Found it', i'll have a fix shortly"}}