-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[RFC] runc cli: --rootless flag idiosyncrasies #2645
Comments
I understand the motivation, but changing |
The two
I don't really mind if we remove (As an aside, looking back I think |
While looking into #2639 I found out we have two
--rootless
flags with different meaning:runc help
asspec
, documented inrunc spec --help
asThe problem here is non-uniform syntax:
The first (global) option applies (I guess) to
create
,run
,exec
andupdate
), the second applies tospec
.The second option is true boolean, meaning that specifying
--rootless
is equivalent to--rootless=true
. This is what I would expect. The first option is "bool-or-auto" meaning that specifying--rootless
is equivalent to no option, and to actually enable rootless mode one has to use--rootless=true
.Both items are confusing, second is more.
Proposal
I think we can do the following to rectify this:
Deprecate the local
--rootless
flag forrunc spec
, adding a warning that the global one should be used.Make the global
--rootless
equivalent to--rootless=yes
, and warn that using--rootless=auto
is deprecated (as it is "auto" without specifying any option).Eventually remove the local
--rootless
and the global--rootless=auto
.@AkihiroSuda @cyphar @mrunalp what do you think?
The text was updated successfully, but these errors were encountered: