You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Describe the bug
Adding an
exported_bins
line to adistrobox assemble
ini file whereroot=true
yields an error.To Reproduce
The problem is that the
enter
andexport
commands that are run aftercreate
byassemble
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 withroot=true
should have the--root
flag.The text was updated successfully, but these errors were encountered: