Update 2.4 schema

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2018-03-30 12:41:19 -07:00
parent 520f5d0fde
commit e6420bd011

View File

@ -93,7 +93,8 @@
"network": {"type": "string"}, "network": {"type": "string"},
"target": {"type": "string"}, "target": {"type": "string"},
"shm_size": {"type": ["integer", "string"]}, "shm_size": {"type": ["integer", "string"]},
"extra_hosts": {"$ref": "#/definitions/list_or_dict"} "extra_hosts": {"$ref": "#/definitions/list_or_dict"},
"isolation": {"type": "string"}
}, },
"additionalProperties": false "additionalProperties": false
} }
@ -113,6 +114,9 @@
"cpu_percent": {"type": "integer", "minimum": 0, "maximum": 100}, "cpu_percent": {"type": "integer", "minimum": 0, "maximum": 100},
"cpu_shares": {"type": ["number", "string"]}, "cpu_shares": {"type": ["number", "string"]},
"cpu_quota": {"type": ["number", "string"]}, "cpu_quota": {"type": ["number", "string"]},
"cpu_period": {"type": ["number", "string"]},
"cpu_rt_period": {"type": ["number", "string"]},
"cpu_rt_runtime": {"type": ["number", "string"]},
"cpus": {"type": "number", "minimum": 0}, "cpus": {"type": "number", "minimum": 0},
"cpuset": {"type": "string"}, "cpuset": {"type": "string"},
"depends_on": { "depends_on": {
@ -219,6 +223,7 @@
"mem_swappiness": {"type": "integer"}, "mem_swappiness": {"type": "integer"},
"memswap_limit": {"type": ["number", "string"]}, "memswap_limit": {"type": ["number", "string"]},
"network_mode": {"type": "string"}, "network_mode": {"type": "string"},
"networks": { "networks": {
"oneOf": [ "oneOf": [
{"$ref": "#/definitions/list_of_strings"}, {"$ref": "#/definitions/list_of_strings"},
@ -258,7 +263,6 @@
}, },
"uniqueItems": true "uniqueItems": true
}, },
"privileged": {"type": "boolean"}, "privileged": {"type": "boolean"},
"read_only": {"type": "boolean"}, "read_only": {"type": "boolean"},
"restart": {"type": "string"}, "restart": {"type": "string"},