The approach used to set the ulimit on a container does not work for services.
For containers, it's as simple as passing a ulimit
parameter on the docker run
command.
For services, is is possible on the command line? Ulimit
is not recognized as a flag.
See here for a relevant question on containers (note: does not apply to services).