Hello,
I've recently installed the latest docker, and wanted to fire up docker-compose up on docker-compose.yml. I started dockerd with admin rights and another powershell interface to run docker-compose up on the .yml file. Note that I'm using Windows 10. When i run the compose command, i get an error saying:
ERROR: client version 1.22 is too old. Minimum supported API version is 1.25, please upgrade your client to a newer version
.
I have the latest docker. When i run docker version in non-admin prompt i get the following:
Client:
Version: 17.06.0-ce
API version: 1.31
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:30:30 2017
OS/Arch: windows/amd64
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.31/version: open //./pipe/docker_engine: Access is denied. In the default daemon configuration on Windows, the docker client
must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Note that the api level is 1.31 here. However when I the same command in admin mode, i get:
Client:
Version: 17.06.0-ce
API version: 1.24 (downgraded from 1.31)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:30:30 2017
OS/Arch: windows/amd64
Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.25, please upgrade your client to a newer version
The api version gets downgraded, and I feel this is the reason i cannot execute my docker-compose command. If anyone could help me resolve this issue, it'd be very helpful. I need to set up my docker environment immediately. How do i run docker with api level of 1.31 in admin mode?
https://github.com/docker/compose/issues/4106
Make sure your Compose file version is at least 2.1
I've done that. It doesn't work.
Try 2.2? Maybe the Windows engine has upped the minimum requirement.
I tried changing it to 2.1 and created env variables DOCKER_API_VERSION and COMPOSE_API_VERSION with value 1.25. Works fine now.
same
I tried changing it to 2.1 and created env variables DOCKER_API_VERSION and COMPOSE_API_VERSION with value 1.25. Works fine now.
u were facing that for windows?? and which path u have configured in DOCKER_API_VERSION variables?
I tried changing it to 2.1 and created env variables DOCKER_API_VERSION and COMPOSE_API_VERSION with value 1.25. Works fine now.
u were facing that for windows?? and which path u have configured in DOCKER_API_VERSION variables?
You can just set the value of the env variables to 1.25
You do not have to enter in a path as the value.
Most helpful comment
I tried changing it to 2.1 and created env variables DOCKER_API_VERSION and COMPOSE_API_VERSION with value 1.25. Works fine now.