Open Tanya1515 opened 2 weeks ago
Hello! I am trying to create container with enroot tool. However, i have faced with problem of /bin/sh. Firstly, i run
enroot import docker://hello-world
for docker image importing, and the command works nice. Then i try to create container:
enroot create --name test_hello ./hello-world.sqsh
and everything is ok. However, when i try to run the container, the command:
enroot start test_hello
fails with error:
enroot-switchroot: failed to execute: /bin/sh: No such file or directory
What is more there is no /bin directory inside $HOME/.local/share/enroot/test_hello. SeLinux is disabled.
Any idea what the problem is ?
The hello-world image is a FROM scratch image that only contains one binary. Try with an image that is not "distroless", like Ubuntu.
FROM scratch
Hello! I am trying to create container with enroot tool. However, i have faced with problem of /bin/sh. Firstly, i run
enroot import docker://hello-world
for docker image importing, and the command works nice. Then i try to create container:
enroot create --name test_hello ./hello-world.sqsh
and everything is ok. However, when i try to run the container, the command:
enroot start test_hello
fails with error:
enroot-switchroot: failed to execute: /bin/sh: No such file or directory
What is more there is no /bin directory inside $HOME/.local/share/enroot/test_hello. SeLinux is disabled.
Any idea what the problem is ?