8000 docker cannot terminate a container when processes linger after TERM · Issue #38978 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
docker cannot terminate a container when processes linger after TERM #38978
Closed
@Supermathie

Description

@Supermathie

Description

Steps to reproduce the issue:

  1. Set up multiple containers in a sidecar style
  2. Attempt to restart one of the sidecars where one of the processes lingers after TERM

Describe the results you received:

  1. docker restart hangs forever
  2. other commands to inspect state (exec, stats, top) also hang
  3. docker is unable to kill the container's processes

Describe the results you expected:

  1. successful restart

Additional information you deem important (e.g. issue happens only occasionally):
Unloaded system, 100% reproducible

Killing the lingering process in the container allows the restart to happen

Same setup works as expected on 17.06.2 on Ubuntu

Output of docker version:

Client:
 Version:           18.09.3
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        774a1f4
 Built:             Thu Feb 28 06:34:04 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.3
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       774a1f4
  Built:            Thu Feb 28 05:59:55 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Output of docker info:

Containers: 20
 Running: 20
 Paused: 0
 Stopped: 0
Images: 22
Server Version: 18.09.3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 173
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e
runc version: 6635b4f0c6af3810594d2770f662f34ddc15b40d
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-8-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.5GiB
Name: tieinterceptor1a
ID: Z7MI:MQEK:2BAR:CAQO:VV6B:4HO6:6YDV:OP23:CMQK:CMOD:UZ3A:HP5V
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: true
Product License: Community Engine

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):
bare metal

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/runtimekind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/18.09

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0