分类 默认分类 下的文章

问题,执行命令 docker-compose 时,出现 "client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version";

如下:

> docker-compose -f docker-compose.yml up -d
client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
Failed to deploy 'Compose: docker-compose.yml': `docker-compose` process finished with exit code 1

可以修改 docker-compose.yml 文件的内容:

-: version: '2'
+: version: '3'