Repository navigation
Add support for --cap-add and --cap-drop - #6968
Conversation
|
|
|
LGTM |
|
Can we make them comma-separated lists? This would make using the command line much nicer (such as |
There was a problem hiding this comment.
capability(ies)? I'd just use capabilities. The plural can mean one or more. Ditto next line.
There was a problem hiding this comment.
I agree a comma separated list of CAPABILIITES.
|
No i don't agree on a comma separated list. It is inconsistent with every other flag that we have, -p, -v. |
|
+1 for passing multiple Making it possible to pass multiple caps as a list would mean that we have to change this everywhere to have a consistent behavior. |
|
I also think we need to be consistent. If we want commas, that should be a separate issue/PR. |
|
LGTM |
|
LGTM |
|
Docs ping @fredlf @jamtur01 @SvenDowideit |
There was a problem hiding this comment.
Sentence doesn't make sense. Perhaps:
The hostConfig option now accepts the field CapAdd, which specifies a list of capabilities to add, and the field CapDrop, which specifies a list of capabilities to drop.
|
LGTM |
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
There was a problem hiding this comment.
Is this an artifact from a merge conflict?
|
LGTM after my two comments are addressed. |
|
@fredlf done :) |
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
|
LGTM - though I'd like a few practical examples of when or why you'd use them. |
Add support for --cap-add and --cap-drop
This adds support for the following yaml syntax:
service:
caps:
add:
- SYS_NICE
drop:
- NET_RAW
--cap-add and --cap-drop was added to docker:
moby/moby#6968
Also this feature has been added to docker-py:
docker/docker-py#314
This adds support for the following yaml syntax:
service:
caps:
add:
- SYS_NICE
drop:
- NET_RAW
--cap-add and --cap-drop was added to docker:
moby/moby#6968
Also this feature has been added to docker-py:
docker/docker-py#314
This adds support for the following yaml syntax:
service:
caps:
add:
- SYS_NICE
drop:
- NET_RAW
--cap-add and --cap-drop was added to docker:
moby/moby#6968
Also this feature has been added to docker-py:
docker/docker-py#314
Signed-off-by: Bryan Bishop <[email protected]>
This adds support for the following yaml syntax:
service:
caps:
add:
- SYS_NICE
drop:
- NET_RAW
--cap-add and --cap-drop was added to docker:
moby/moby#6968
Also this feature has been added to docker-py:
docker/docker-py#314
Signed-off-by: Bryan Bishop <[email protected]>
Linked to #6687