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

Handle caps in service configuration #538

Closed
wants to merge 3 commits into from
Closed

Conversation

kanzure
Copy link

@kanzure kanzure commented Oct 13, 2014

This handles the following format for caps specified on services:

service:
    caps:
        add:
            - SYS_NICE
        drop:
            - NET_ADMIN

Here's where --cap-add and --cap-drop were added to docker:
moby/moby#6968

Also this feature has been added to docker-py:
docker/docker-py#314

To confirm caps in a container:

apt-get install libcap-ng-utils
captest --text

MISSING: New docs. New tests. So far none of the tests have failed but I am still waiting on a few.

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 <kanzure@gmail.com>
@prologic
Copy link

Nice :)

@zdexter
Copy link

zdexter commented Nov 18, 2014

I need this feature as well, looking forward to a merge.

@bfirsh
Copy link

bfirsh commented Dec 8, 2014

Fixed in #623. Thanks @kanzure!

@bfirsh bfirsh closed this Dec 8, 2014
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

Successfully merging this pull request may close these issues.

4 participants