3 Aug
2022
3 Aug
'22
8:33 p.m.
On Wed, Aug 03, 2022 at 03:08:20PM -0000, None via Podman wrote:
When I execute podman with the following arguments, there is some error. $ podman run --rm --env-host --userns=keep-id --network=host --pid=host --ipc=host --privileged 8174dfc8728e echo "hello" Error: runc: runc create failed: unable to start container process: exec: "echo": executable file not found in $PATH: OCI runtime attempted to invoke a command that was not found
But when I execute the following, it works. $ podman run --rm 8174dfc8728e echo "hello" hello
--env-host means that the PATH is going to be copied from your running shell, IIUC; try it without that. Or just give the full path of the command; /bin/echo or whatever.