The issue appears to be related to missing utilities in the container environment, such as ps, grep, awk, and tr. The error indicates that these commands are not found when the nsexec command is executed.
/bin/sh: ps: not found
/bin/sh: grep: not found
/bin/sh: grep: not found
/bin/sh: grep: not found
/bin/sh: grep: not found
/bin/sh: awk: not found
/bin/sh: tr: not found
exit status 127
This might be due to the lightweight nature of the container image (e.g., busybox or alpine), which does not include these utilities by default.
Issue Description
Type: bug report
Describe what happened (or what feature you want)
I started a container running
httpd
, with container ID45f172395fbf
. When I executed the command:I received the following error:
Describe what you expected to happen
I expected the
blade create cri process kill
command to successfully find and kill thehttpd
process in the specified container.How to reproduce it (as minimally and precisely as possible)
httpd
.45f172395fbf
.Tell us your environment
Anything else we need to know?
The issue appears to be related to missing utilities in the container environment, such as
ps
,grep
,awk
, andtr
. The error indicates that these commands are not found when thensexec
command is executed.This might be due to the lightweight nature of the container image (e.g., busybox or alpine), which does not include these utilities by default.