{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string" }, "image": { "type": "object", "properties": { "registry": { "type": "string" }, "image": { "type": "string" }, "tag": { "type": "string" } }, "required": [ "registry", "image", "tag" ] }, "privileged": { "type": "boolean" }, "read_only": { "type": "boolean" }, "replace": { "type": "boolean" }, "pull_policy": { "type": "string" }, "restart": { "type": "string" }, "timezone": { "type": "string" }, "network": { "type": "object", "properties": { "mode": { "type": "string" }, "options": { "type": "array", "items": {} } }, "required": [ "mode", "options" ] }, "dns": { "type": "object", "properties": { "search": { "type": "string" }, "servers": { "type": "array", "items": [ { "type": "string" } ] } }, "required": [ "search", "servers" ] }, "ports": { "type": "object", "properties": { "tcp": { "type": "array", "items": [ { "type": "string" } ] }, "udp": { "type": "array", "items": [ { "type": "string" } ] } }, "required": [ "tcp", "udp" ] }, "env": { "type": "object" } }, "secrets": { "type": "object" }, "volumes": { "type": "object" }, "capabilities": { "type": "object", "properties": { "add": { "type": "array", "items": [ { "type": "string" } ] }, "drop": { "type": "array", "items": [ { "type": "string" } ] } }, "required": [ "add", "drop" ] }, "accounting": { "type": "object", "propeties": { "cgroup": { "type": "object", "properties": { "config": { "type": "string" }, "parent": { "type": "string" }, "namespace": { "type": "string" }, "how": { "type": "string" } } }, "cpu": { "type": "object", "properties": { "period": { "type": "string" }, "quota": { "type": "string" }, "shares": { "type": "string" }, "number": { "type": "string" }, "cpuset": { "cpus": { "type": "string" }, "mems": { "type": "string" } } } } } }, "required": [ "name", "image" ] }