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
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
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.
On Wed, Aug 3, 2022 at 5:09 PM None via Podman <podman@lists.podman.io> 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
Thanks for reaching out. Can you share the output of `podman info --debug`? Alternatively, feel free to open an issue on GitHub which will help us better track issues. Kind regards, Valentin
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
$ podman info --debug host: arch: amd64 buildahVersion: 1.24.1 cgroupControllers: [] cgroupManager: cgroupfs cgroupVersion: v1 conmon: package: Unknown path: /home/rsync/.local/container/bin/conmon version: 'conmon version 2.1.0, commit: unknown' cpus: 32 distribution: distribution: '"centos"' version: "7" eventLogger: file hostname: myhost idMappings: gidmap: - container_id: 0 host_id: 1212 size: 1 - container_id: 1 host_id: 7598096 size: 35536 uidmap: - container_id: 0 host_id: 1212 size: 1 - container_id: 1 host_id: 7598096 size: 35536 kernel: 3.10.0-1127.18.2.el7.x86_64 linkmode: dynamic logDriver: k8s-file memFree: 90199556096 memTotal: 201051492352 networkBackend: cni ociRuntime: name: runc package: Unknown path: /home/rsync/.local/container/sbin/runc version: |- runc version 1.1.0 spec: 1.0.2-dev go: go1.16.13 libseccomp: 2.3.1 os: linux remoteSocket: path: /run/user/1212/podman/podman.sock security: apparmorEnabled: false capabilities: CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_MKNOD,CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT rootless: true seccompEnabled: true seccompProfilePath: "" selinuxEnabled: false serviceIsRemote: false slirp4netns: executable: /home/rsync/.local/container/bin/slirp4netns package: Unknown version: |- slirp4netns version 1.1.12 commit: 7a104a101aa3278a2152351a082a6df71f57c9a3 libslirp: 4.6.1.55-888d SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.3.1 swapFree: 25689440256 swapTotal: 34359734272 uptime: 5288h 21m 22.52s (Approximately 220.33 days) plugins: log: - k8s-file - none - passthrough network: - bridge - macvlan - ipvlan volume: - local registries: {} store: configFile: /home/rsync/.local/container/config/containers/storage.conf containerStore: number: 0 paused: 0 running: 0 stopped: 0 graphDriverName: overlay graphOptions: overlay.imagestore: /home/rsync/.local/share/containers/storage overlay.mount_program: Executable: /home/rsync/.local/container/bin/fuse-overlayfs Package: Unknown Version: |- fusermount3 version: 3.10.4 fuse-overlayfs: version 1.8.2 FUSE library version 3.10.3 using FUSE kernel interface version 7.31 overlay.mountopt: nodev,fsync=0 graphRoot: /tmp/1212/32230/share/containers/storage graphStatus: Backing Filesystem: xfs Native Overlay Diff: "false" Supports d_type: "true" Using metacopy: "false" imageCopyTmpDir: /var/tmp imageStore: number: 4 runRoot: /tmp/containers-user-1212/containers volumePath: /tmp/1212/32230/share/containers/storage/volumes version: APIVersion: 4.0.2 Built: 1648031621 BuiltTime: Wed Mar 23 18:33:41 2022 GitCommit: c99f9f1b6960b98158b7f5fc4e6b5ac1a10b3542 GoVersion: go1.16.13 OsArch: linux/amd64 Version: 4.0.2
On 8/4/22 11:36, None via Podman wrote:
$ podman info --debug host: arch: amd64 buildahVersion: 1.24.1 cgroupControllers: [] cgroupManager: cgroupfs cgroupVersion: v1 conmon: package: Unknown path: /home/rsync/.local/container/bin/conmon version: 'conmon version 2.1.0, commit: unknown' cpus: 32 distribution: distribution: '"centos"' version: "7" eventLogger: file hostname: myhost idMappings: gidmap: - container_id: 0 host_id: 1212 size: 1 - container_id: 1 host_id: 7598096 size: 35536 uidmap: - container_id: 0 host_id: 1212 size: 1 - container_id: 1 host_id: 7598096 size: 35536 kernel: 3.10.0-1127.18.2.el7.x86_64 linkmode: dynamic logDriver: k8s-file memFree: 90199556096 memTotal: 201051492352 networkBackend: cni ociRuntime: name: runc package: Unknown path: /home/rsync/.local/container/sbin/runc version: |- runc version 1.1.0 spec: 1.0.2-dev go: go1.16.13 libseccomp: 2.3.1 os: linux remoteSocket: path: /run/user/1212/podman/podman.sock security: apparmorEnabled: false capabilities: CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_MKNOD,CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT rootless: true seccompEnabled: true seccompProfilePath: "" selinuxEnabled: false serviceIsRemote: false slirp4netns: executable: /home/rsync/.local/container/bin/slirp4netns package: Unknown version: |- slirp4netns version 1.1.12 commit: 7a104a101aa3278a2152351a082a6df71f57c9a3 libslirp: 4.6.1.55-888d SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.3.1 swapFree: 25689440256 swapTotal: 34359734272 uptime: 5288h 21m 22.52s (Approximately 220.33 days) plugins: log: - k8s-file - none - passthrough network: - bridge - macvlan - ipvlan volume: - local registries: {} store: configFile: /home/rsync/.local/container/config/containers/storage.conf containerStore: number: 0 paused: 0 running: 0 stopped: 0 graphDriverName: overlay graphOptions: overlay.imagestore: /home/rsync/.local/share/containers/storage overlay.mount_program: Executable: /home/rsync/.local/container/bin/fuse-overlayfs Package: Unknown Version: |- fusermount3 version: 3.10.4 fuse-overlayfs: version 1.8.2 FUSE library version 3.10.3 using FUSE kernel interface version 7.31 overlay.mountopt: nodev,fsync=0 graphRoot: /tmp/1212/32230/share/containers/storage graphStatus: Backing Filesystem: xfs Native Overlay Diff: "false" Supports d_type: "true" Using metacopy: "false" imageCopyTmpDir: /var/tmp imageStore: number: 4 runRoot: /tmp/containers-user-1212/containers volumePath: /tmp/1212/32230/share/containers/storage/volumes version: APIVersion: 4.0.2 Built: 1648031621 BuiltTime: Wed Mar 23 18:33:41 2022 GitCommit: c99f9f1b6960b98158b7f5fc4e6b5ac1a10b3542 GoVersion: go1.16.13 OsArch: linux/amd64 Version: 4.0.2 _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
There is no support for podman 4 on Centos 7. There are lots of features that we rely on which may not be present in that old of a kernel.
I have set additionalimagestores. The article is https://www.redhat.com/sysadmin/image-stores-podman. If I run the image which R/O is true, like the following error. $ podman run --rm --userns=keep-id 35f88cfae40f 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 If run it without --userns=keep-id, it runs right. If run the image which R/O is false, it runs right. $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE R/O registry.cloud.com/vasp 544-test 35f88cfae40f 11 hours ago 12.5 GB true
I have set additionalimagestores. The article is https://www.redhat.com/sysadmin/image-stores-podman. $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE R/O docker.io/library/centos 7.9.2009 eeb6ee3f44bd 10 months ago 212 MB true docker.io/library/python 3.8 4544558e07c5 39 hours ago 936 MB false If I run the image which R/O is true, like the following error. $ podman run --userns=keep-id eeb6ee3f44bd 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 If run it without --userns=keep-id, it runs right. $ podman run eeb6ee3f44bd echo "hello" hello If run the image which R/O is false, it runs right. $ podman run --userns=keep-id 4544558e07c5 echo "hello" hello
On 8/4/22 22:43, None via Podman wrote:
I have set additionalimagestores. The article is https://www.redhat.com/sysadmin/image-stores-podman. $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE R/O docker.io/library/centos 7.9.2009 eeb6ee3f44bd 10 months ago 212 MB true docker.io/library/python 3.8 4544558e07c5 39 hours ago 936 MB false
If I run the image which R/O is true, like the following error. $ podman run --userns=keep-id eeb6ee3f44bd 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
If run it without --userns=keep-id, it runs right. $ podman run eeb6ee3f44bd echo "hello" hello
If run the image which R/O is false, it runs right. $ podman run --userns=keep-id 4544558e07c5 echo "hello" hello _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Giuseppe any ideas? Any changes you can try this with crun? One difference is --userns=keep-id runs the container as non-root. If you run $ podman run --user root --userns=keep-id eeb6ee3f44bd echo "hello" Does it work?
Yes, it works. $ podman run --user root --userns=keep-id eeb6ee3f44bd echo "hello" hello
On 8/8/22 04:59, None via Podman wrote:
Yes, it works.
$ podman run --user root --userns=keep-id eeb6ee3f44bd echo "hello" hello _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Please move this email to a discussion on github.com/containers/podman, as I am loosing context.
I have opend an issues on https://github.com/containers/podman/issues/15204
participants (5)
-
Daniel Walsh -
GHui Wu -
Robin Lee Powell -
ugiwgh@qq.com -
Valentin Rothberg