描述你的问题(Describe the bug)
docker 容器产生很多defunct进程:
$ ps -ef | grep defunct | grep -v 'grep'
root 15496 143741 0 Jan04 pts/0 00:00:00 [node] <defunct>
root 15504 143741 0 Jan04 pts/0 00:00:00 [node] <defunct>
root 15518 143741 0 Jan04 pts/0 00:00:03 [node] <defunct>
root 15549 143741 0 Jan04 pts/0 00:00:01 [node] <defunct>
root 15556 143741 0 Jan04 pts/0 00:00:01 [node] <defunct>
root 15589 143741 0 Jan04 pts/0 00:00:02 [node] <defunct>
root 15590 143741 0 Jan04 pts/0 00:00:11 [node] <defunct>
root 15625 143741 0 Jan04 pts/0 00:00:04 [node] <defunct>
root 33860 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 33868 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 33890 143741 0 Jan03 pts/0 00:00:04 [node] <defunct>
root 33905 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 33912 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 33931 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 33938 143741 0 Jan03 pts/0 00:00:19 [node] <defunct>
root 33958 143741 0 Jan03 pts/0 00:00:09 [node] <defunct>
root 99764 143741 0 09:08 pts/0 00:00:02 [node] <defunct>
root 99772 143741 0 09:08 pts/0 00:00:01 [node] <defunct>
root 99785 143741 0 09:08 pts/0 00:00:04 [node] <defunct>
root 99799 143741 0 09:08 pts/0 00:00:02 [node] <defunct>
root 99810 143741 0 09:08 pts/0 00:00:02 [node] <defunct>
root 99834 143741 0 09:08 pts/0 00:00:02 [node] <defunct>
root 99836 143741 0 09:08 pts/0 00:00:16 [node] <defunct>
root 99885 143741 0 09:08 pts/0 00:00:07 [node] <defunct>
root 100095 143741 0 09:09 pts/0 00:00:02 [node] <defunct>
root 100102 143741 0 09:09 pts/0 00:00:02 [node] <defunct>
root 100110 143741 0 09:09 pts/0 00:00:01 [node] <defunct>
root 100145 143741 0 09:09 pts/0 00:00:01 [node] <defunct>
root 102120 143741 0 09:14 pts/0 00:00:02 [node] <defunct>
root 102121 143741 0 09:14 pts/0 00:00:17 [node] <defunct>
root 102146 143741 0 09:14 pts/0 00:00:07 [node] <defunct>
root 102469 143741 0 09:15 pts/0 00:00:10 [node] <defunct>
root 102476 143741 0 09:15 pts/0 00:00:02 [node] <defunct>
root 155562 143741 0 2022 pts/0 00:00:13 [node] <defunct>
root 155569 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 155576 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 155592 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 155626 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 157918 143741 0 2022 pts/0 00:00:01 [node] <defunct>
root 158451 143741 0 2022 pts/0 00:00:02 [node] <defunct>
root 158453 143741 0 2022 pts/0 00:00:19 [node] <defunct>
root 158488 143741 0 2022 pts/0 00:00:07 [node] <defunct>
root 159011 143741 0 2022 pts/0 00:00:01 [node] <defunct>
root 159032 143741 0 2022 pts/0 00:00:24 [node] <defunct>
root 159046 143741 0 2022 pts/0 00:00:01 [node] <defunct>
root 159053 143741 0 2022 pts/0 00:00:01 [node] <defunct>
root 161622 143741 0 2022 pts/0 00:00:02 [node] <defunct>
root 161628 143741 0 2022 pts/0 00:00:15 [node] <defunct>
root 161647 143741 0 2022 pts/0 00:00:05 [node] <defunct>
root 167034 143741 0 2022 pts/0 00:00:08 [node] <defunct>
root 167041 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 167076 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 167121 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 169202 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 174715 143741 0 2022 pts/0 00:00:00 [git-remote-http] <defunct>
root 175391 143741 0 2022 pts/0 00:00:00 [node] <defunct>
root 177031 143741 0 2022 pts/0 00:00:00 [git-remote-http] <defunct>
root 185708 143741 0 Jan03 pts/0 00:00:00 [node] <defunct>
root 185750 143741 0 Jan03 pts/0 00:00:03 [node] <defunct>
root 185765 143741 0 Jan03 pts/0 00:00:01 [node] <defunct>
root 185772 143741 0 Jan03 pts/0 00:00:00 [node] <defunct>
root 185796 143741 0 Jan03 pts/0 00:00:02 [node] <defunct>
root 185798 143741 0 Jan03 pts/0 00:00:10 [node] <defunct>
root 185816 143741 0 Jan03 pts/0 00:00:03 [node] <defunct>
$ ps -ef | grep 143741
...
root 143741 143710 0 2022 pts/0 00:02:31 node ./dist-node/server/index.js
....
$ ps -ef | grep 143710
...
root 143710 837 0 2022 ? 00:00:30 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/a0c3303cf61ad906ad2d9dca6d52a227798eeaffe9e68467ef0166a33f5e8c4d -address /run/containerd/containerd.sock -containerd-binary /usr/bin/containerd -runtime-root /var/run/docker/runtime-runc -systemd-cgroup
...
$ docker ps | grep a0c3303cf61a
a0c3303cf61a ghcr.io/opensumi/opensumi-web:latest "docker-entrypoint.s…" 7 days ago Up 7 days 0.0.0.0:8001->8000/tcp opensumi
环境信息(Environment)
- OS: "Ubuntu 18.04 LTS (Bionic Beaver)"
- Docker: "Docker version 19.03.11, build 42e35e61f3"
- Opensumi image:
ghcr.io/opensumi/opensumi-web:latest
ghcr.io/opensumi/opensumi-web@sha256:61e44acf5b732b3f4821be2a828094d15d3dcbc29f1ea3aa0455683b82e0ab2a"
描述你的问题(Describe the bug)
docker 容器产生很多defunct进程:
环境信息(Environment)
ghcr.io/opensumi/opensumi-web:latest
ghcr.io/opensumi/opensumi-web@sha256:61e44acf5b732b3f4821be2a828094d15d3dcbc29f1ea3aa0455683b82e0ab2a"