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] exported_bins does not work for rootful containers #1171

Closed
kerneis-anssi opened this issue Jan 24, 2024 · 0 comments
Closed

[Error] exported_bins does not work for rootful containers #1171

kerneis-anssi opened this issue Jan 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kerneis-anssi
Copy link

Describe the bug

Adding an exported_bins line to a distrobox assemble ini file where root=true yields an error.

To Reproduce

$ cat << EOF > test.ini
[test]
image=fedora:latest
root=true
exported_bins=/usr/bin/ls
EOF
$ distrobox assemble create --file test.ini
 - Creating test... 
Creating 'test' using image fedora:latest	 [ OK ]
Distrobox 'test' successfully created.
To enter, run:

distrobox enter --root test

Error: no such container test
Create it now, out of image registry.fedoraproject.org/fedora-toolbox:38? [Y/n]: n
Ok. For creating it, run this command:
	distrobox create <name-of-container> --image <remote>/<docker>:<tag>
Error: no such container test
Create it now, out of image registry.fedoraproject.org/fedora-toolbox:38? [Y/n]: n
Ok. For creating it, run this command:
	distrobox create <name-of-container> --image <remote>/<docker>:<tag>

The problem is that the enter and export commands that are run after create by assemble miss the --root flag, so the container is looked up in the non-root list of containers, where it doesn’t exist.

Expected behavior

The commands started implicitly by distrobox assemble for containers with root=true should have the --root flag.

@kerneis-anssi kerneis-anssi added the bug Something isn't working label Jan 24, 2024
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

No branches or pull requests

1 participant