-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Docker Compose does not run with new image windows-2022 with Docker 23.00 - The current Compose file version is not compatible with your engine version. #7080
Comments
hello, @meneasysoft! thank you for reporting. we will take a look. |
v2.16.0 will be a part of the next release |
Is there a workaround available? |
Thank you for the information about v2.16.0 being part of the next release. My pipelines do not work any more until this is fixed. Please also make sure that v2.16.0 will fixes the described issue. I am not able to see if this helps for myself. It is just my hope that this will help, looking at the release notes of docker-compose v2.16.0. |
Will the fix be available on windows-2019? |
It should be available by the end of the week on all OSes |
@mikhailkoliada: Should this already work again? Version: 20230214.1 |
Just want to add. Same here. |
Deployed |
Still getting this issue: My docker-compose:
As far as I can see the Docker compose is used via Choco. You can see it here: See the log:
Environment path: It seems to me that the Docker compose in Choco takes precedes. |
I still have the same issue windows-2022 image. |
Yeah it's a great issue when someone thinks that they control over some issues they can't get past & blaming them instead of themselves. I'm accountable for mine: just a reaction. On Feb 20, 2023 12:23 AM, meneasysoft ***@***.***> wrote:
I still have the same issue windows-2022 image.
So i can not confirm that this works.
There is still an issue and I am disappointed that this issue was closed without verifying that the actual problem was solved.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
-> I edited my comment and apologize if this could be misunderstood or I did not express myself in the way I intended it. |
Hi, I seem to have the same issue on the windows-2019. Using version docker compose file 2.2
|
I have tested several docker images and repo and assume that is an issue with docker-compose on windows. |
Nothing solved for hosted agents Windows 2019 and 2022 |
I figured out a workaround: Calling
and as you can see here - that's the old version:
Looking at the install docker script for windows runners I figured out the path where If I call |
Can confirm that replacing the
Thanks @mathias-kogler-snkeos for the suggestion. |
Thanks @mathias-kogler-snkeos for pointing to the error.
Fun fact:
an returning different versions:
This means, instead of using the absolut path, you could call "docker compose". |
|
thanks
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Éric ***@***.***>
Sent: Wednesday, February 22, 2023 9:48 AM
To: ***@***.***>
Cc: ***@***.***>; ***@***.***>
Subject: Re: [actions/runner-images] Docker Compose does not run with new image windows-2022 with Docker 23.00 - The current Compose file version is not compatible with your engine version. (Issue #7080)
Thanks @mathias-kogler-snkeos<https://github.com/mathias-kogler-snkeos> for pointing to the error.
You may also use 'dockerComposePath' to avoid rewriting all tasks.
- task: ***@***.***
displayName: Run services
inputs:
action: Run services
projectName: docker-compose
....
dockerComposePath: 'C:\ProgramData\docker\cli-plugins\docker-compose.exe'
Fun fact:
docker compose version
docker-compose version
an returning different versions:
Docker Compose version v2.16.0
docker-compose version 1.29.2
This means, instead of using the absolut path, you could call "docker compose".
—
Reply to this email directly, view it on GitHub<#7080 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2T4AWTPJ6L2KUJTFNFER6LWYYYMHANCNFSM6AAAAAAUWYF6HM>.
You are receiving this because you commented.Message ID: ***@***.***>
|
- replace docker-compose with docker compose on windows (removew workaround for actions/runner-images#7080) - Add -nobuild option to run-docker-compose.ps1/sh script to simplify running without building the images - remove version field from docker-compose.yml files to avoid triggering warnings - Add mount for crash dumps collections on ssl stress tests
- replace docker-compose with docker compose on windows (removew workaround for actions/runner-images#7080) - Add -nobuild option to run-docker-compose.ps1/sh script to simplify running without building the images - remove version field from docker-compose.yml files to avoid triggering warnings - Add mount for crash dumps collections on ssl stress tests
Description
I think docker compose v2 2.15.1 is not compatible with Docker 23.00 shipped with the new windows image ( https://github.com/actions/runner-images/blob/win22/20230206.1/images/win/Windows2022-Readme.md )
I think docker compose 2.16.0 should be integrated into the new windows-2022 image:
https://github.com/docker/compose/releases/tag/v2.16.0
I always get the following error since the new image is used:
##[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.
##[error]The process 'C:\ProgramData\Chocolatey\bin\docker-compose.exe' failed with exit code 1
Platforms affected
Runner images affected
Image version and build link
Runner Image
Image: windows-2022
Version: 20230206.1
Included Software: https://github.com/actions/runner-images/blob/win22/20230206.1/images/win/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230206.1
Is it regression?
Yes it still worked in
20230129.1
Expected behavior
The error: [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.
should not occur and the compose command should work
Actual behavior
The error occurs: [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.
Repro steps
In Azure-DevOps I use in the pipeline:
My docker-compose (docker-compose.yml) file looks like this (details changed):
I did some adjustments to my pipeline and my docker-compose.yml file but that did not help.
More details here: https://stackoverflow.com/questions/75399574/azure-devops-compose-error-the-current-compose-file-version-is-not-compatible
The text was updated successfully, but these errors were encountered: