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 Answers1

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.

aniucum
  • 151
  • 1
  • 4
  • 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 '20 at 00:39