{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15942","labels_url":"https://api.github.com/repos/docker/docker/issues/15942/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15942/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15942/events","html_url":"https://github.com/docker/docker/issues/15942","id":104015526,"number":15942,"title":"Killed container still appeared to be running","user":{"login":"bartmeuris","id":2588174,"avatar_url":"https://avatars.githubusercontent.com/u/2588174?v=3","gravatar_id":"","url":"https://api.github.com/users/bartmeuris","html_url":"https://github.com/bartmeuris","followers_url":"https://api.github.com/users/bartmeuris/followers","following_url":"https://api.github.com/users/bartmeuris/following{/other_user}","gists_url":"https://api.github.com/users/bartmeuris/gists{/gist_id}","starred_url":"https://api.github.com/users/bartmeuris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartmeuris/subscriptions","organizations_url":"https://api.github.com/users/bartmeuris/orgs","repos_url":"https://api.github.com/users/bartmeuris/repos","events_url":"https://api.github.com/users/bartmeuris/events{/privacy}","received_events_url":"https://api.github.com/users/bartmeuris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T09:13:06Z","updated_at":"2015-10-13T22:52:31Z","closed_at":null,"body":"Description of problem:\r\n\r\nI run my irc client inside docker, and use it with docker attach. This morning when I ran the script, which should have attached the container, it hanged and didn't respond to Ctrl-L to refresh the display, and had to kill the docker client from another console. When doing a `docker ps`, it showed that the container was \"Up 5 weeks\" and had been created \"5 weeks ago\". Killing resulted in an error that clearly didn't have anything to do with it (it mentioned TLS). A quick `ps auwx` did not show any irssi process.\r\n\r\nIt was the only container running on the system, so I rebooted the machine. After the reboot I did a quick `docker ps` - and to my surprise the container still appeared to be \"Up 5 weeks\", but `ps` still didn't show any irssi process.\r\n\r\nTo fix this, I stopped the docker daemon, edited the `/var/lib/docker/containers/<id>/config.json` and set the `running` to `false` and restarted the daemon.\r\n\r\nI have no idea how to reproduce it, but it seems some extra validation checks might be needed before assuming a container is running and not just relying on the `config.json`.\r\n\r\n\r\n`docker version`:\r\nClient:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:35:49 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:35:49 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\n`docker info`:\r\nContainers: 12\r\nImages: 170\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 194\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.13.0-62-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 1\r\nTotal Memory: 3.861 GiB\r\nName: koffie\r\nID: 6QXR:2KPJ:R4LD:RO26:LR4S:MX4V:QHAI:BFLR:RXNZ:JFZJ:HBTV:PDZD\r\nUsername: bartmeuris\r\nRegistry: https://index.docker.io/v1/\r\n\r\n`uname -a`:\r\nLinux koffie 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\n\r\nVM running on VMWare ESX\r\n\r\nSteps to reproduce:\r\n\r\n- Haven't been able to reproduce\r\n\r\nActual Results:\r\n\r\nContainer not attaching, container process not running, docker still showing the container as \"Up\"\r\n\r\nExpected Results:\r\n\r\nDocker not showing the container as running\r\n\r\nAdditional info:\r\n\r\nDockerfile and script to start/attach container here: https://gist.github.com/bartmeuris/ed6a45f9c4d0216649b8"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/147876213","html_url":"https://github.com/docker/docker/issues/15942#issuecomment-147876213","issue_url":"https://api.github.com/repos/docker/docker/issues/15942","id":147876213,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T22:52:31Z","updated_at":"2015-10-13T22:52:31Z","body":"ping @coolljt0725 I think some improvements were made in this, or am I mistaken?"}}