Do you know why I get the error message Error: executable file ls
not found in $PATH: No such file or directory: OCI runtime command not found error? The error message goes away when I bind-mount an empty directory over /var/lib/containers by adding -v ./emptydir:/var/lib/containers:rw
[core@fedora ~]$ rpm-ostree status
State: idle
Deployments:
● ostree://fedora:fedora/x86_64/coreos/next
Version: 33.20201117.1.0 (2020-11-18T16:30:21Z)
Commit: 4769149819c16b7d60c930c2f3fe8a8161de82549f9e24b8cc3ae651718a29e0
GPGSignature: Valid signature by 963A2BEB02009608FE67EA4249FD77499570FF31
ostree://fedora:fedora/x86_64/coreos/next
Version: 33.20201104.1.0 (2020-11-05T14:20:13Z)
Commit: f7bff56c9710b5fedb22d50651bcd875856bb83510f7115e10d21167bd9a3b75
GPGSignature: Valid signature by 963A2BEB02009608FE67EA4249FD77499570FF31
[core@fedora ~]$ podman run -v /dev/fuse:/dev/fuse:rw --rm --ulimit host --privileged --rm quay.io/podman/stable podman run --user 0 docker.io/library/alpine:3.12.1 ls
Trying to pull docker.io/library/alpine:3.12.1...
Getting image source signatures
Copying blob sha256:188c0c94c7c576fff0792aca7ec73d67a2f7f4cb3a6e53a84559337260b36964
Copying config sha256:d6e46aa2470df1d32034c6707c8041158b652f38d2a9ae3d7ad7e7532d22ebe0
Writing manifest to image destination
Storing signatures
Error: executable file `ls` not found in $PATH: No such file or directory: OCI runtime command not found error
[core@fedora ~]$ mkdir emptydir
[core@fedora ~]$ podman run -v ./emptydir:/var/lib/containers:rw -v /dev/fuse:/dev/fuse:rw --rm --ulimit host --privileged --rm quay.io/podman/stable podman run --user 0 docker.io/library/alpine:3.12.1 ls
Trying to pull docker.io/library/alpine:3.12.1...
Getting image source signatures
Copying blob sha256:188c0c94c7c576fff0792aca7ec73d67a2f7f4cb3a6e53a84559337260b36964
Copying config sha256:d6e46aa2470df1d32034c6707c8041158b652f38d2a9ae3d7ad7e7532d22ebe0
Writing manifest to image destination
Storing signatures
bin
dev
etc
home
lib
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
[core@fedora ~]$
Some background information: I am trying to run Podman in Podman which is needed for a software project that I’m writing (GitHub - eriksjolund/slurm-container-cluster: Container-based Slurm cluster with support for running on multiple ssh-accessible computers. Currently it is based on podman, systemd, norouter and sshocker (sshfs).) . I found a Github comment that mentioned how to do it. (I shared that information in a Stackoverflow answer)