How to update docker-compose on Docker for Windows

2019-04-28 06:50发布

I've installed Docker for Windows on my machine (Windows 10, Hyper-V). Version is 18.03.0-ce. But the version of docker-compose is 1.20.1. I want to run docker-compose with a docker-compose.yml file containing the property version : '2'. I get the error:

client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

How can i upgrade to a newer version of docker-compose?

1条回答
We Are One
2楼-- · 2019-04-28 07:45

I do not know you have still the same issue or not. Please check "version" value in the docker-compose.yml file should be more than "2". For me I changed it to "2.1" and it worked. version: '2.1' in the compose file is the minimum supported version for Windows containers. I found it from here: https://github.com/docker/for-win/issues/268

查看更多
登录 后发表回答