{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24036","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24036/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24036/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24036/events","html_url":"https://github.com/docker/docker/issues/24036","id":162636410,"number":24036,"title":"stop event is not emited ","user":{"login":"sebi-hgdata","id":11443582,"avatar_url":"https://avatars.githubusercontent.com/u/11443582?v=3","gravatar_id":"","url":"https://api.github.com/users/sebi-hgdata","html_url":"https://github.com/sebi-hgdata","followers_url":"https://api.github.com/users/sebi-hgdata/followers","following_url":"https://api.github.com/users/sebi-hgdata/following{/other_user}","gists_url":"https://api.github.com/users/sebi-hgdata/gists{/gist_id}","starred_url":"https://api.github.com/users/sebi-hgdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebi-hgdata/subscriptions","organizations_url":"https://api.github.com/users/sebi-hgdata/orgs","repos_url":"https://api.github.com/users/sebi-hgdata/repos","events_url":"https://api.github.com/users/sebi-hgdata/events{/privacy}","received_events_url":"https://api.github.com/users/sebi-hgdata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T09:02:45Z","updated_at":"2016-06-28T09:10:12Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\n~$ sudo docker version\r\nClient:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\n\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\n$ sudo docker version\r\nClient:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\nseb@seb:~$ sudo docker info\r\nContainers: 3\r\n Running: 0\r\n Paused: 0\r\n Stopped: 3\r\nImages: 383\r\nServer Version: 1.11.2\r\nStorage Driver: overlay\r\n Backing Filesystem: extfs\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.3.0-040300-generic\r\nOperating System: Ubuntu 14.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 8\r\nTotal Memory: 15.16 GiB\r\nName: seb\r\nID: 3IIK:AWIX:PLOR:BPQ4:XNEL:SSXQ:2GUL:VEKX:OVCQ:SCCX:MN2U:DTWH\r\nDocker Root Dir: /home/seb/hgdata/deployments/docker\r\nDebug mode (client): false\r\nDebug mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nCluster store: consul://localhost:8500\r\nCluster advertise: 192.168.123.209:2375\r\n\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nphysical machine \r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1.sudo docker run -ti ubuntu:14.04.2 bash\r\n2. ctrl + d  to stop the container\r\n\r\n\r\n**Describe the results you received:**\r\n A stop event should be emited.\r\n\r\n**Describe the results you expected:**\r\nSeems like the stop event is not emited.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n```\r\n~$ sudo docker events\r\n2016-06-28T11:57:18.959206039+03:00 container die 250ea3e5ccd0547e7d4b32019c85166cdc51eaf57753ef7ec9201649c6c4f82a (exitCode=0, image=ubuntu:14.04.2, name=jovial_kalam)\r\n2016-06-28T11:57:19.118457334+03:00 network disconnect 948a1f377c073a5d3491610ff45006ce6d3f4623e453b6f0f87ab4a621ace227 (container=250ea3e5ccd0547e7d4b32019c85166cdc51eaf57753ef7ec9201649c6c4f82a, name=bridge, type=bridge)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/228994597","html_url":"https://github.com/docker/docker/issues/24036#issuecomment-228994597","issue_url":"https://api.github.com/repos/docker/docker/issues/24036","id":228994597,"user":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T09:10:12Z","updated_at":"2016-06-28T09:10:12Z","body":"@sebi-hgdata that is to be expected. The `stop` event is emitted if an explicit call to `stop` (vi cli `docker stop` or via the API) has been done. By exiting using `ctrl-d`, you're exiting the container, but from the docker point of view, the process died, and thus the event you see is `container die` and no `stop`."}}
{"actor":{"display_login":"vdemeester"}}