You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running wolfi-base container image.
I am running two shells.
first one
docker run -it chainguard/wolfi-base sh
second one - I execed into the container from docker desktop(also tried from a different osx Terminal)
When I run timeout 10 sleep 10 from the second terminal
and checked process details from first terminal, I see the timeout is run under PPID = 1 instead of the second shell pid.
/ # ps -eo ppid,pid,user,sid,comm
PPID PID USER SID COMMAND
0 1 root 1 sh
0 12 root 12 sh
0 92 root 92 sh
92 103 root 92 sleep
1 105 root 105 timeout
1 106 root 1 ps
child command (sleep in above example) under timeout is executed under assumingely correct ppid(92 sh)
Since timeout command is not running with correct ppid I suspect it is creating zombie processes and unable to reap process correctly. If I run command from shell window with pid =1 it clears up zombie process.
/ # ps aux
PID USER TIME COMMAND
1 root 0:00 sh
12 root 0:00 /bin/sh
92 root 0:00 sh
105 root 0:00 [timeout]
109 root 0:00 [timeout]
112 root 0:00 [timeout]
115 root 0:00 [timeout]
116 root 0:00 ps aux
The text was updated successfully, but these errors were encountered:
I am running wolfi-base container image.
I am running two shells.
first one
docker run -it chainguard/wolfi-base sh
second one - I execed into the container from docker desktop(also tried from a different osx Terminal)
When I run
timeout 10 sleep 10
from the second terminaland checked process details from first terminal, I see the timeout is run under PPID = 1 instead of the second shell pid.
child command (sleep in above example) under timeout is executed under assumingely correct ppid(92 sh)
Since timeout command is not running with correct ppid I suspect it is creating zombie processes and unable to reap process correctly. If I run command from shell window with pid =1 it clears up zombie process.
The text was updated successfully, but these errors were encountered: