{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23128","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23128/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23128/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23128/events","html_url":"https://github.com/docker/docker/issues/23128","id":157680316,"number":23128,"title":"Docker daemon doesn't clearly shutdown","user":{"login":"JuanCarlosM","id":1137572,"avatar_url":"https://avatars.githubusercontent.com/u/1137572?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCarlosM","html_url":"https://github.com/JuanCarlosM","followers_url":"https://api.github.com/users/JuanCarlosM/followers","following_url":"https://api.github.com/users/JuanCarlosM/following{/other_user}","gists_url":"https://api.github.com/users/JuanCarlosM/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCarlosM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCarlosM/subscriptions","organizations_url":"https://api.github.com/users/JuanCarlosM/orgs","repos_url":"https://api.github.com/users/JuanCarlosM/repos","events_url":"https://api.github.com/users/JuanCarlosM/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCarlosM/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,"milestone":null,"comments":5,"created_at":"2016-05-31T14:06:16Z","updated_at":"2016-06-02T13:33:28Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\nClient:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:43:49 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:43:49 2016\r\n OS/Arch:      linux/amd64\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\nContainers: 3\r\n Running: 3\r\n Paused: 0\r\n Stopped: 0\r\nImages: 2\r\nServer Version: 1.11.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 73\r\n Dirperm1 Supported: true\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.4.0-22-generic\r\nOperating System: Ubuntu 16.04 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 7.305 GiB\r\nName: frontend-autoscaler-bbbb\r\nID: QFCD:CUPU:I2UI:AC56:EVU2:SPRZ:RHWB:XGZK:VXLD:6FP7:7WG6:US7S\r\nDocker Root Dir: /var/lib/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\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nUbuntu 16.04 LTS on Google Cloud Platform\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. Use docker-compose to start your dockers\r\n2. Shutdown the server (via ACPI)\r\n3. The systemd shutdown kills docker daemon and dockers without shutting down containers \"clearly\" with SIGTERM\r\n\r\n**Describe the results you received:**\r\n\r\nMay 26 10:54:08 myserver systemd[1]: Stopping User Manager for UID 1001...\r\nMay 26 10:54:08 myserver systemd[3254]: Stopped target Default.\r\nMay 26 10:54:08 myserver systemd[3254]: Reached target Shutdown.\r\nMay 26 10:54:08 myserver systemd[3254]: Starting Exit the Session...\r\nMay 26 10:54:08 myserver systemd[3254]: Stopped target Basic System.\r\nMay 26 10:54:08 myserver systemd[3254]: Stopped target Sockets.\r\nMay 26 10:54:08 myserver systemd[3254]: Stopped target Paths.\r\nMay 26 10:54:08 myserver systemd[3254]: Stopped target Timers.\r\nMay 26 10:54:08 myserver systemd[3254]: Received SIGRTMIN+24 from PID 3381 (kill).\r\nMay 26 10:54:08 myserver systemd[1]: Stopped User Manager for UID 1001.\r\nMay 26 10:54:08 myserver systemd[1]: Removed slice User Slice of anh3l.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Authenticate and Authorize Users to Run Privileged Tasks...\r\nMay 26 10:54:14 myserver systemd[1]: Stopped target Graphical Interface.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Accounts Service...\r\nMay 26 10:54:14 myserver systemd[1]: Stopped target Multi-User System.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LXD - container startup/shutdown...\r\nMay 26 10:54:14 myserver systemd[1]: Stopped target Login Prompts.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Getty on tty1...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Serial Getty on ttyS0...\r\nMay 26 10:54:14 myserver **docker[1284]: time=\"2016-05-26T10:54:14.090261856Z\" level=info msg=\"Processing signal 'terminated'\"**\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: Start NTP daemon...\r\nMay 26 10:54:14 myserver **docker[1284]: time=\"2016-05-26T10:54:14Z\" level=info msg=\"stopping containerd after receiving terminated\"**\r\nMay 26 10:54:14 myserver systemd[1]: Stopping OpenBSD Secure Shell server...\r\nMay 26 10:54:14 myserver docker[1284]: time=\"2016-05-26T10:54:14.094813455Z\" level=error msg=\"failed to receive event from containerd: rpc error: code = 13 desc = \\\"transport is closing\\\"\"\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: MD monitoring daemon...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: Set up cgroupfs mounts....\r\nMay 26 10:54:14 myserver systemd[1]: Stopping FUSE filesystem for LXC...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Google Compute Engine Address Manager Daemon...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: Set the CPU Frequency Scaling governor to \"ondemand\"...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping D-Bus System Message Bus...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: service and resource monitoring daemon...\r\nMay 26 10:54:14 myserver systemd[1]: Stopped target Cloud-init target.\r\nMay 26 10:54:14 myserver systemd[1]: Stopped Execute cloud user/final scripts.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Google Compute Engine Clock Sync Daemon...\r\nMay 26 10:54:14 myserver fusermount[3469]: /bin/fusermount: failed to unmount /var/lib/lxcfs: Invalid argument\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Login Service...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Regular background program processing daemon...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping Google Compute Engine user shutdown scripts...\r\nMay 26 10:54:14 myserver systemd[1]: Starting Unattended Upgrades Shutdown...\r\nMay 26 10:54:14 myserver systemd[1]: Stopped Apply the settings specified in cloud-config.\r\nMay 26 10:54:14 myserver systemd[1]: Stopped target Cloud-config availability.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: daemon to balance interrupts for SMP systems...\r\nMay 26 10:54:14 myserver systemd[1]: **Stopping Docker Application Container Engine...**\r\nMay 26 10:54:14 myserver systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: automatic crash report generation...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping LSB: Record successful boot for GRUB...\r\nMay 26 10:54:14 myserver systemd[1]: Stopping ACPI event daemon...\r\n\r\n**Describe the results you expected:**\r\n\r\nIt shloud send SIGTERM to container to gracefull stop and wait 10 seconds to send SIGKILL\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nIt happens on every shutdown / reboot.\r\n\r\nIf you guys needs a detailed scenario I can prepare it.\r\n\r\nThanks\r\nJuan Carlos Moreno\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/223292530","html_url":"https://github.com/docker/docker/issues/23128#issuecomment-223292530","issue_url":"https://api.github.com/repos/docker/docker/issues/23128","id":223292530,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T13:33:27Z","updated_at":"2016-06-02T13:33:27Z","body":"AFAICT docker-proxy is shutdown only after the container has exited... and specifically this means only after containerd has notified Docker that the container has exited.\r\n\r\nAlso note that docker-proxy is _only_ used for local traffic. External traffic is handled by iptables NAT."}}
{"actor":{"display_login":"cpuguy83"}}