The error message “oci runtime exec failed: exec failed: unable to start container process:
exec: ‘ping’: executable file not found in $path: unknown” typically occurs when trying
to execute a command within a container, but the required executable is not available.
The error message indicates that the ‘ping’ command is not found in the $PATH environment
variable inside the container. This means that either the ‘ping’ executable is not installed
in the container image, or it is installed in a non-standard location that is not included in
the $PATH.
To resolve this issue, you can either:
-
Ensure that the ‘ping’ command is installed in the container image by including the necessary
package or installation step in the Dockerfile or container deployment process. - Specify the full path to the ‘ping’ executable when executing the command, if you know its location inside the container. For example, instead of running “ping”, you can run “/usr/bin/ping”.