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?
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
ERROR : client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
The above error will be resolve by simply changing the version as from 2.0 to 2.1 in your docker-compose.yml file
I have searched so many sites but even I could not find the root-cause, exact reason and how it is resolving by changing the version number in our compose file.
It will be helpful to all of us if anyone post the root cause and solution
Please Update version "2.0" to "2.1"
version: '2.1'services:
web:
build: flask/.
ports:
- "5000:5000"
volumes:
- .:/code
mysql:
build: db/.
environment:
MYSQL_DATABASE: vs_engine
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: 0.0.0.0
MYSQL_USER: root
MYSQL_PASSWORD:
ports:
- "3306:3306"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With