-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DockerCompose@0 uses outdated Docker-Compose utility 1.29.2 #17808
Comments
I'm using the next version V2 of Docker Compose which uses the docker CLI 'compose' command instead of the The task is looking for the 'docker-compose' executable and gives me an error.
|
I've found a workaround for this. wget -Odocker-compose https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64
chmod a+x ./docker-compose In my Docker Compose task (0.*) under the Advanced Options -> Docker Compose executable Path set the |
@shrralis thanks for sharing your workaround, you just saved my tail. The task should be fixed to try |
Workaround also helped with this error which appeared today to me:
|
Was surprised to learn that I'm not using
|
Had the exact same issue in my pipeline. Can you provide reference of the ones described above? It indeed fixed the issue but I would like to read more about it. Thanks! |
Since the update to Docker Engine and using the latest Windows-2019 image release 20230214.1.
(The image contains the following Docker related versions: Docker 23.0.1 and Docker Compose V2 2.16.0)
And having the following task
We are facing the following error:
The current Compose file version is not compatible with your engine version. Please upgrade your Compose file to a more recent version, or set a COMPOSE_API_VERSION in your environment.
My Docker-Compose file:
Error log:
Specifically the line
##[error]The process 'C:\ProgramData\Chocolatey\bin\docker-compose.exe' failed with exit code 1
Looking at the build log. We can see that the issue is reported actually by Choco Docker Compose.
DockerCompose@0
uses Docker Compose version fromC:\ProgramData\Chocolatey\bin\
Instead, it should take the latest Docker-Compose utility.
Going ahead to get the version of the Choco Docker Compose via:
Outputted the following:
docker-compose version 1.29.2, build 5becea4c
Choco Docker Compose for reference:
https://community.chocolatey.org/packages/docker-compose
As a workaround, I used below suggested solution
The text was updated successfully, but these errors were encountered: