0

There available some security and resource constraint configuration for docker container applied by running for example docker run -it --cap-add=sys_nice some_image

Is there way to apply constraints for docker swarm service? docker service create --cap-add=sys_nice some_image fails with message: "unknown flag: --cap-add"

EDIT1: I need to resolve issue mentioned here

Thanks!

1 Answer 1

2

Support --cap-add in swarm mode was added recently in docker/cli master branch https://github.com/docker/cli/pull/2687. Not sure that the update was added to the stable version.

1
  • The pull request says Milestone 20.03.0. Current stable version is 19.03.x. Hopefully that's in the near future.
    – Rockallite
    Sep 24, 2020 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.