This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# Compose版本依赖 | ||
|
||
参考:[Compose and Docker compatibility matrix](https://docs.docker.com/compose/compose-file/#compose-and-docker-compatibility-matrix) | ||
|
||
`Docker Compose`分为两个部分:文件格式与应用版本 | ||
|
||
## 文件格式 | ||
|
||
`Docker Compose`经历了多次的文件格式调整,不断增加新的内容。其文件格式与`Docker`引擎版本对应如下: | ||
|
||
![](./imgs/compose-docker.png) | ||
|
||
当前使用的`Compose`文件格式为版本`3.7`,当前`Docker`引擎版本为 | ||
|
||
``` | ||
$ docker info | grep -i server | grep -i version | ||
Server Version: 19.03.5 | ||
``` | ||
|
||
## 应用版本 | ||
|
||
直接使用最新版本的程序即可,参考[compose releases](https://github.com/docker/compose/releases/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters