Docker组合yml文件的兼容性

最近尝试将现有的docker-compose.yml文件从版本2.1升级到版本3.2。 当docker-compose up跑起来的时候,抱怨道:

 Unsupported config option for services.webserver: 'mem_limit' 

然而,在升级文档页面,这里没有提到关于mem_limit内容,在2.x到3.x版本中提到。 我想有人告诉我,秘密的处理也改变了,如果那样的话,也没有提到。 有谁知道是否有任何改变/兼容性的完整列表在任何地方?

任何人build议通过第三版的文档,发现自己的差异,我希望,会被低估! 🙂

在Docker 文档网站上,在docker组合版本3下,您可以看到它们已经replace了一些variables,这些variables还包括mem_limit ,这不仅仅是内存

 Note: This replaces the older resource constraint options for non swarm mode in Compose files prior to version 3 (cpu_shares, cpu_quota, cpuset, mem_limit, memswap_limit, mem_swappiness), as described in Upgrading version 2.x to 3.x.