Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] Enter tries to execute shell based on HOST's PATH instead of the container's one #251

Closed
89luca89 opened this issue May 3, 2022 · 1 comment · Fixed by NixOS/nixpkgs#175302
Labels
bug Something isn't working

Comments

@89luca89
Copy link
Owner

89luca89 commented May 3, 2022

If you create a container like:

SHELL=/usr/bin/zsh distrobox create -i alpine:latest -n test

and do a

distrobox enter test

You'll get an:

Error: executable file /usr/bin/zsh not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found

That is because alpine puts it in /bin/zsh, so let's find a way to make it work

@89luca89 89luca89 added the bug Something isn't working label May 3, 2022
@serebit
Copy link

serebit commented Sep 12, 2022

Something similar to this is happening for me on distrobox v1.4.0:

distrobox create --root --image alpine:edge

Then entering with:

distrobox enter --root alpine-edge

produces the following error message:

sh: /usr/bin/zsh: not found

An error occurred

An error occurred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants