NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
648 stars 94 forks source link

Enroot error with /bin/bash #217

Open Tanya1515 opened 2 weeks ago

Tanya1515 commented 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 ?

flx42 commented 2 weeks ago

The hello-world image is a FROM scratch image that only contains one binary. Try with an image that is not "distroless", like Ubuntu.