-
Notifications
You must be signed in to change notification settings - Fork 616
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
Add support privilege when create service #1129
Conversation
@@ -175,6 +175,9 @@ message ContainerSpec { | |||
|
|||
// PullOptions parameterize the behavior of image pulls. | |||
PullOptions pull_options = 10; | |||
|
|||
// Privileged give extended privileges to the container. | |||
bool Privileged = 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Field names in protobuf should be lowercase (privileged
). They automatically get converted to go-style CamelCase names when the Go code is generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaronlehmann Thanks for the review. I will modify this now. :)
c68ad23
to
9342392
Compare
@aaronlehmann Review again. Thanks |
Signed-off-by: Xian Chaobo <[email protected]>
9342392
to
e5fa1d9
Compare
Current coverage is 55.09%@@ master #1129 diff @@
==========================================
Files 77 77
Lines 12079 12080 +1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 6658 6655 -3
- Misses 4505 4508 +3
- Partials 916 917 +1
|
@jimmyxian Adding privileged greatly impacts the security model. Proper considerations need to be made before adding support for this operation. |
I think this was a pull request before its time. There will come a day when we add Closing. Feel free to reopen later on (or right now), if you disagree. |
The demand for |
@aluzzardi What about the profile proposal? |
I strongly urge us not to take the easy way out on this one. This will haunt us forever. If the demand is strong, I suggest we prioritize coming up with decent profiles, or at least an early extensible version that fits the use-case. |
I think we should add |
@mgoelzer There are no required changes for the profile model. The profile mode hardwires |
What I don't like about profiles is that now "privileged" is just a string. The behavior becomes not portable. |
@jimmyxian not merge? |
Have any steps been made towards this? What about the related Personally, I believe this should have been merged. Mirroring the current I tend to view swarm as nothing more than a control layer for docker. Given this, my suggestion is that swarm mode should mirror as much of the docker functionality as possible (i.e. - just store and pass on every My opinion is obviously biased. Could we get this re-opened for discussion? |
Is there any progress on this to support |
ping |
Implement: #1030
Signed-off-by: Xian Chaobo [email protected]