Add Cgroup resource limits into Yaml spec

This adds all the cgroup restrictions into the spec.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-08-09 16:39:10 +01:00
parent c2b081ed8a
commit 13a1ffdd44
4 changed files with 156 additions and 20 deletions

View File

@@ -30,6 +30,12 @@ services:
- CAP_SETGID
- CAP_DAC_OVERRIDE
net: host
resources:
devices:
- allow: true
access: rwm
pids:
limit: 10
files:
- path: etc/docker/daemon.json
contents: '{"debug": true}'