-
Notifications
You must be signed in to change notification settings - Fork 89
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
wwctl container exec command does not pass arguments #253
Comments
If a command like "wwctl container path $CONTAINER" could print the canonical path to chroot directory it would be helpful for scripting. Or maybe a more generic "wwctl container info" command, with output options. |
Another workaround is to use double hyphen two times, so e.g. the following comand works
|
@mslacken I'd like to look further into this; but, since you made the workaround suggestion, can you explain why
works, but
does not? I'd think that, if the second example worked, then that'd be basically what other such tools do, and this could be closed. |
@anderbubble The reason for the |
Still this isn't bug, but a known issue |
It is not possible to pass any commandline argument which is prefixed with a
-
, so for the commandthe commandline argument
--BAAR
won't be passed toFOO
. This is a known issue with cobra, see spf13/cobra#739As workaround, one may want to chroot to
/var/lib/warewulf/chroots/$CONTAINER/rootfs
The text was updated successfully, but these errors were encountered: