-
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 is incompatible with the new Docker engine #7162
Comments
Hello @SillyCode, we will take a look |
Hello @SillyCode, we wasn`t able to reproduce this error using docker-compose file with version 3.9. For testing we used more simplified docker compose configuration with windows/nanoserver image (unfortunately I did not find information about image my-mssql-image:latest that you use in your example), and build was successful. I suggest the problem can be with specified container image that you use. If problem still exist, please provide more detailed repro steps (for example minimum repo with ready pipeline and docker-compose file). docker-compose.yml
Starting: Initialize job logs
Spin up container job log
|
Hi sergei-pyshnoi, I use a private private registry image that is based on mssql 2019. Can you tell which service runs the Docker-compose in the log?
|
|
I am at lost to why does it work. And I can confirm that his workaround works. |
Hello @SillyCode . You are right, the |
Thank you @sergei-pyshnoi . |
Description
Following the upgrade to the Docker and Docker Compose and issue #7080.
Currently the latest windows-2019 release is 20230214.1.
Which contains the following Docker related versions:
Docker 23.0.1 and Docker Compose V2 2.16.0
Ref:
https://github.com/actions/runner-images/releases/tag/win19%2F20230214.1
Using this Windows-2019 image.
We face the issue below:
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
Looking at the build log. We can see that the issue is reported actually by Choco Docker Compose.
Specifically the line
##[error]The process 'C:\ProgramData\Chocolatey\bin\docker-compose.exe' failed with exit code 1
Printing the environment variables:
As can be seen from the environment variable output.
There is no mentioning of the Docker path.
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
To summarize. It seems that the Docker Compose is installed via Choco package.
And it is currently supports old version. Hence it seems to me, why we have incompatibility issue.
In spite of having latest Docker Compose version listed on the image.
Platforms affected
Runner images affected
Image version and build link
Operating System
Microsoft Windows Server 2019
10.0.17763
Runner Image
Image: windows-2019
Version: 20230214.1
Image release:
https://github.com/actions/runner-images/releases/tag/win19%2F20230214.1
Is it regression?
yes. Version 20230129.2
Expected behavior
The Docker container with Docker Compose should run without having incompatibility issue between the Docker compose and Docker engine
Actual behavior
Currently, we have the following error generated when trying to run Docker compose
Repro steps
Below are the steps that reproduce the issue:
My docker-compose file
The text was updated successfully, but these errors were encountered: