I run 'docker version', which gives:
> docker version
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
As it tells, client API version is 1.40.
But when I am trying to run a docker-compose command, I get error as:
> docker-compose up
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
Why this message, when client API version is 1.40?
Edit: I updated docker-compose.
>docker-compose version
docker-compose version 1.25.5, build unknown
docker-py version: 4.2.0
CPython version: 3.7.4
OpenSSL version: OpenSSL 1.1.1c 28 May 2019
But I still see same issue:
>docker-compose up
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
As it turns out, "version" in docker-copose.yml is the reason for error. It was 2 for me, and I changed it to 2.1. Now it works.
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