Add support for declaring named volumes in compose files
* Bump default API version to 1.21 (required for named volume management) * Introduce new, versioned compose file format while maintaining support for current (legacy) format * Test updates to reflect changes made to the internal API Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
4bf2f8c4f9
commit
b4be7b870f
14 changed files with 262 additions and 81 deletions
|
|
@ -281,11 +281,14 @@ def process_errors(errors, service_name=None):
|
|||
return '\n'.join(format_error_message(error, service_name) for error in errors)
|
||||
|
||||
|
||||
def validate_against_fields_schema(config, filename):
|
||||
def validate_against_fields_schema(config, filename, version=None):
|
||||
schema_filename = "fields_schema.json"
|
||||
if version:
|
||||
schema_filename = "fields_schema_v{0}.json".format(version)
|
||||
_validate_against_schema(
|
||||
config,
|
||||
"fields_schema.json",
|
||||
format_checker=["ports", "expose", "bool-value-in-mapping"],
|
||||
schema_filename,
|
||||
format_checker=["ports", "environment", "bool-value-in-mapping"],
|
||||
filename=filename)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue