docker-compose:检查兼容性

时间:2019-03-08 06:24:09

标签: docker docker-compose

我的Linux主机上具有以下docker系统:

#  docker --version
Docker version 18.06.1-ce, build e68fc7a215


#  docker-compose --version
docker-compose version 1.20.1, build unknown

根据兼容性矩阵: https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-matrix

Compose file format        Docker Engine release
3.7                        18.06.0+
3.6                        18.02.0+

根据docker-compose VERSION 3.6的发行说明,可从1.20.1版开始使用 https://docs.docker.com/release-notes/docker-compose/

1.20.0 (2018-03-20)
New features
COMPOSE FILE VERSION 3.6
Introduced version 3.6 of the docker-compose.yml specification. This version must be used with Docker Engine 18.02.0 or above.

Added support for the tmpfs.size property in volume mappings

由于我的docker版本是18.06.0+,因此3.6版(对于1.20.1版)将可以正常工作,因为18.06.0+版的compose版本3.7是兼容的

0 个答案:

没有答案