-
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
[BUG]: DockerCompose@0 no longer functions after removal of Docker Compose v1 from hosted agents. #19711
Comments
As a workaround until the task is fixed, add this to the task's inputs:
Also see: #17808 |
Docker Compose v2 is also much more strict with project names (eg cannot contain upper case characters), so this bug also needs to be addressed #16361 |
Wow, my entire company is blown away after this change 😡 Why didn't Microsoft issue any warnings months before the change? For example: 'This task will be deprecated, please migrate to docker-compose v2 before the 1st of April.' Currently, I have to update about 500 microservices names from 'Company.Project.ServiceName' to 'company-project-servicename', which affects a lot of components/configs/DockerFiles entrypoints There is my temporary workaround to download and use docker-compose v1:
then add dockerComposePath to DockerCompose@0 task |
docker-compose is deprecated. The functionality is provided by docker command itself. the command should be : docker, with arguments compose ... rest of args |
My company is facing the same. Could the task be adjusted to support docker compose v2? |
This works:
that's the cli plugin, which the command "docker compose" would call. Apparently, it is a binary on its own. Other options I guess, is to have a step to install the "old" docker-compose somewhere (download and install it) as shown above.... |
So should we start using Docker@2 with command: 'compose'? And stop using DockerCompose@0 |
Can we have updates on this? As Docker@0 is deprecating in July. Can we start using Docker@2 in our ADO tasks? |
There is no DockerCompose@1 or @2 version, only @0 is available. |
Yes that is the whole point of the original request, there is no DockerCompose@1/2, but since DockerCompose@0 is now deprecated, there is a need for it to be developed so that support for DockerCompose v2 and above can be implemented as DockerCompose v1 has been removed from hosted agents. |
What is the work-around? Our organisation pipelines would fail after July once @1 docker compose is deprecated. |
yep, I understood the point of this issue. I was just answering @ashishbhatt-afk's question. |
@SwapnaVersion1 You can use this workaround, it worked for us. Bear in mind, make sure you have put depends_on when there is dependent image in your docker compose yaml file, otherwise, you would be seeing the error we were seeing due to docker compose v2 is building images in parallel.
|
We started getting the following error for windows yesterday/day before:-
fix was again the
|
we noticed the behavior of dockercompose@0 change too in our ubuntu agent. |
Saw this message appeared in console output from yesterday. |
Oh my, what a fine job at change management and versioning we have here 🤡
That would be reasonable, if not for the fact that none of the message is true, in fact it is wrong in two separate ways:
Well, at least today it happened with a small increment in the task's version number ( |
Yeah, we felt the pain too. Too many main stream changes all rushed in around the same time. V1 executable will be gone from MS hosted agent on 9th July, now DockerCompose@0 will be removed (below message is from the task output) but yet, DockerCompose@1 isn't made official yet (there was a commit to master branch 3 days ago d8e6a2e) |
#20085 This is the ticket to add DockerComposeV1, I left a message there. |
ok, just learnt that docker compose v1 executable will be removed on 29th July, giving people time to migration to DockerCompose@1 before @0 gets removed on 24th July, I suppose. It makes sense to redundant devops task before removing the executable, not the other way around. |
@sandywangkpmg, @TripleEmcoder, I would like to clarify what is happening here. Related to the tasks changes: |
Hi @trs1991! We are using the classic editor (please take a look the image in edit of my last message). How we can achieve omit or prevent DockerCompose task add its own docker compose files? Thanks in advance |
The short answer is you can't. It's only a warning anyway and won't stop your compose files from building correctly. |
New issue checklist
Task name
DockerCompose@0
Task version
0.231.0
Issue Description
Now that the removal of docker compose v1 has begun rolling out as per this GitHub issue
The dockercompose@0 task immediately fails with '##[error]Unhandled: Docker Compose was not found. You can provide the path to docker-compose via 'dockerComposePath' due to using the legacy docker-compose v1 command that no longer exists on the Microsoft hosted agents.
The task needs to be updated to use the newer 'docker compose' v2 command.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04, Ubuntu 20.04, Windows Server 2019, Windows Server 2022.
Relevant log output
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: