Skip to content

Commit

Permalink
set min engine version needed for v38 schema support
Browse files Browse the repository at this point in the history
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
  • Loading branch information
aiordache committed Feb 7, 2020
1 parent 1fb7f24 commit 596de14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compose/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
COMPOSEFILE_V3_7 = ComposeVersion('3.7')
COMPOSEFILE_V3_8 = ComposeVersion('3.8')

# minimum DOCKER ENGINE API version needed to support
# features for each compose schema version
API_VERSIONS = {
COMPOSEFILE_V1: '1.21',
COMPOSEFILE_V2_0: '1.22',
Expand All @@ -58,7 +60,7 @@
COMPOSEFILE_V3_5: '1.30',
COMPOSEFILE_V3_6: '1.36',
COMPOSEFILE_V3_7: '1.38',
COMPOSEFILE_V3_8: '1.40',
COMPOSEFILE_V3_8: '1.38',
}

API_VERSION_TO_ENGINE_VERSION = {
Expand All @@ -76,5 +78,5 @@
API_VERSIONS[COMPOSEFILE_V3_5]: '17.06.0',
API_VERSIONS[COMPOSEFILE_V3_6]: '18.02.0',
API_VERSIONS[COMPOSEFILE_V3_7]: '18.06.0',
API_VERSIONS[COMPOSEFILE_V3_8]: '19.03.0',
API_VERSIONS[COMPOSEFILE_V3_8]: '18.06.0',
}

0 comments on commit 596de14

Please sign in to comment.