{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/28366","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/28366/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/28366/comments","events_url":"https://api.github.com/repos/docker/docker/issues/28366/events","html_url":"https://github.com/docker/docker/issues/28366","id":189012478,"number":28366,"title":"\"docker rm -f\" cannot remove pausing container.","user":{"login":"yoshiokatsuneo","id":381300,"avatar_url":"https://avatars.githubusercontent.com/u/381300?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshiokatsuneo","html_url":"https://github.com/yoshiokatsuneo","followers_url":"https://api.github.com/users/yoshiokatsuneo/followers","following_url":"https://api.github.com/users/yoshiokatsuneo/following{/other_user}","gists_url":"https://api.github.com/users/yoshiokatsuneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshiokatsuneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshiokatsuneo/subscriptions","organizations_url":"https://api.github.com/users/yoshiokatsuneo/orgs","repos_url":"https://api.github.com/users/yoshiokatsuneo/repos","events_url":"https://api.github.com/users/yoshiokatsuneo/events{/privacy}","received_events_url":"https://api.github.com/users/yoshiokatsuneo/received_events","type":"User","site_admin":false},"labels":[{"id":179237356,"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T01:47:47Z","updated_at":"2016-11-14T02:37:10Z","closed_at":null,"body":"**Description**\r\n\r\n\"docker rm -f\" does not remove the container but cause error:\r\n\r\n```\r\nError response from daemon: Could not kill running container 0859eb46e6f5e76161b06f12678bd95c1b55dde8c6f4645ca660faa6da201450, cannot remove - Container 0859eb46e6f5e76161b06f12678bd95c1b55dde8c6f4645ca660faa6da201450 is paused. Unpause the container before stopping\r\n```\r\n\r\nYes, I can \"unpause\" before killing the container. But, it is quite nice if \"docker rm -f\" is the final command to remove the container. Also, strictly speaking, even if I call \"docker unpause\" just before \"docker rm -f\", Someone may \"unpause\" the container between those commands.\r\n\r\n**Steps to reproduce the issue:**\r\n1. Run a container.\r\n\r\n```\r\n# docker run -d ubuntu sleep 1000\r\nacf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e\r\n```\r\n\r\n2. Pause the container\r\n```\r\n# docker pause acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e\r\nacf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e\r\n```\r\n\r\n3. Remove the container\r\n```\r\n# docker rm -f acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e\r\nError response from daemon: Could not kill running container acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e, cannot remove - Container acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e is paused. Unpause the container before stopping\r\n```\r\n\r\n**Describe the results you received:**\r\nError message:\r\n\r\n```\r\nError response from daemon: Could not kill running container acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e, cannot remove - Container acf0571d8fdc581a61428b7e9312b12f378d4d649a55cd6e0c199c597a53596e is paused. Unpause the container before stopping\r\n```\r\n\r\n\r\n**Describe the results you expected:**\r\nRemoving the container\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.2\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   bb80604\r\n Built:        Tue Oct 11 18:29:41 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.2\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   bb80604\r\n Built:        Tue Oct 11 18:29:41 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 16\r\n Running: 13\r\n Paused: 1\r\n Stopped: 2\r\nImages: 4\r\nServer Version: 1.12.2\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 150\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-43-generic\r\nOperating System: Ubuntu 16.04.1 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 3.858 GiB\r\nName: paizaterm-prod4\r\nID: 757W:AQM2:WNUV:CQSJ:URNH:5I5W:65OW:4DXQ:QYLV:M57U:P5AG:WBAV\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\nLabels:\r\n provider=generic\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nAWS\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/260235734","html_url":"https://github.com/docker/docker/issues/28366#issuecomment-260235734","issue_url":"https://api.github.com/repos/docker/docker/issues/28366","id":260235734,"user":{"login":"allencloud","id":9465626,"avatar_url":"https://avatars.githubusercontent.com/u/9465626?v=3","gravatar_id":"","url":"https://api.github.com/users/allencloud","html_url":"https://github.com/allencloud","followers_url":"https://api.github.com/users/allencloud/followers","following_url":"https://api.github.com/users/allencloud/following{/other_user}","gists_url":"https://api.github.com/users/allencloud/gists{/gist_id}","starred_url":"https://api.github.com/users/allencloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allencloud/subscriptions","organizations_url":"https://api.github.com/users/allencloud/orgs","repos_url":"https://api.github.com/users/allencloud/repos","events_url":"https://api.github.com/users/allencloud/events{/privacy}","received_events_url":"https://api.github.com/users/allencloud/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T02:37:10Z","updated_at":"2016-11-14T02:37:10Z","body":"I also found that the error message is not so readable: \r\n```\r\nError response from daemon: Could not kill running container acf057..., cannot remove - Container acf057... is paused. Unpause the container before stopping\r\n```"}}
{"actor":{"display_login":"allencloud"}}