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

Arguments position not flexible: "create containerid --bundle dir" #2

Closed
alban opened this issue Mar 9, 2018 · 1 comment
Closed

Comments

@alban
Copy link
Contributor

alban commented Mar 9, 2018

When trying to run crun with arguments in the wrong order, it does not work but the error message is not so clear:

$ ./crun create containerid --bundle /home/alban/oci/c1
2018-03-09T17:54:33.000102555Z: error loading config.json

When using the correct order (./crun create --bundle /home/alban/oci/c1 containerid), it works.

I found this issue when trying to run the OCI runtime validation tests.

runtime-tools seems to do the wrong thing here (I just filed opencontainers/runtime-tools#600) according to the CLI spec. But maybe the crun arguments parsing could be made more flexible, or improve the error message somehow?

@giuseppe
Copy link
Member

giuseppe commented Mar 12, 2018

thanks for the report. Indeed that is confusing and crun must give a better error message, I've pushed this commit to address it:

giuseppe@651cec0

Please feel free to reopen the issue if that is not good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants