-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
area/runtimeexp/expertkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/master
Description
Whenever a process is launched via docker exec
, it seems that killing docker exec
will not terminate the process. For example:
> docker run -d --name test-exec busybox top
> docker exec -it test-exec sh
/ # # we have an exec shell now. assume pid of docker exec is 1234
> kill 1234
# docker exec process is terminated atm, but `nsenter-exec` process is still running with sh as its child
I would expect that killing docker exec -it
process will also kill the spawned process, or there should be a way to stop the spawn process similar to how docker stop
works.
My version of docker:
❯ docker version
Client version: 1.3.1-dev
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): c049949
OS/Arch (client): linux/amd64
Server version: 1.3.1-dev
Server API version: 1.16
Go version (server): go1.3.3
Git commit (server): c049949
❯ docker info
Containers: 1
Images: 681
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 693
Execution Driver: native-0.2
Kernel Version: 3.13.0-33-generic
Operating System: Ubuntu 14.04.1 LTS
CPUs: 2
Total Memory: 1.955 GiB
Debug mode (server): true
Debug mode (client): false
Fds: 17
Goroutines: 16
EventsListeners: 0
Init Path: /home/action/bin/docker
Username: dqminh
Registry: [https://index.docker.io/v1/]
WARNING: No swap limit support
siccovansas, snajjar, jminardi, cjerdonek, dkinzer and 37 morepedosb, pbelskiy, muellermichel, ziye-dm and stefanfisk
Metadata
Metadata
Assignees
Labels
area/runtimeexp/expertkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/master