Comments (18)
As a workaround until the task is fixed, add this to the task's inputs:
dockerComposePath: '/usr/libexec/docker/cli-plugins/docker-compose'
Also see: #17808
from azure-pipelines-tasks.
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:
- task: Bash@3
displayName: "Install docker-compose v1"
inputs:
targetType: 'inline'
script: |
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
then add dockerComposePath to DockerCompose@0 task
dockerComposePath: '/home/vsts/.docker/cli-plugins/docker-compose'
from azure-pipelines-tasks.
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
from azure-pipelines-tasks.
Can we have updates on this? As Docker@0 is deprecating in July. Can we start using Docker@2 in our ADO tasks?
from azure-pipelines-tasks.
docker-compose is deprecated. The functionality is provided by docker command itself. the command should be :
docker, with arguments compose ... rest of args
from azure-pipelines-tasks.
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 other version of the task other than 0. Am I missing something here?
There is no DockerCompose@1 or @2 version, only @0 is available. I think @Jacko1394 @SwapnaVersion1 were referring to Docker task, there are @0/1/2 versions for Docker task, but it does't look like compose is a supported command.
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.
yep, I understood the point of this issue. I was just answering @ashishbhatt-afk's question.
And pointing out Docker@0/1/2 don't have compose command, so using Docker task is no help.
from azure-pipelines-tasks.
@fbuser1, would this not solve the problem for you without needing to rename and repath everything?
from azure-pipelines-tasks.
My company is facing the same. Could the task be adjusted to support docker compose v2?
from azure-pipelines-tasks.
This works:
dockerComposePath: '/usr/libexec/docker/cli-plugins/docker-compose'
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....
from azure-pipelines-tasks.
docker-compose is deprecated. The functionality is provided by docker command itself.
So should we start using Docker@2 with command: 'compose'?
And stop using DockerCompose@0
from azure-pipelines-tasks.
dockerComposePath: '/usr/libexec/docker/cli-plugins/docker-compose' - this is v2, after switching to this path, we started seeing intermittent failure on pulling base image.
then I checked the image, the v1 executable is still available just not included in the PATH.
So I changed to dockerComposePath: '/usr/local/bin/docker-compose', it's working for us now.
from azure-pipelines-tasks.
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 other version of the task other than 0. Am I missing something here?
from azure-pipelines-tasks.
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 other version of the task other than 0. Am I missing something here?
There is no DockerCompose@1 or @2 version, only @0 is available.
I think @Jacko1394 @SwapnaVersion1 were referring to Docker task, there are @0/1/2 versions for Docker task, but it does't look like compose is a supported command.
from azure-pipelines-tasks.
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 other version of the task other than 0. Am I missing something here?
There is no DockerCompose@1 or @2 version, only @0 is available. I think @Jacko1394 @SwapnaVersion1 were referring to Docker task, there are @0/1/2 versions for Docker task, but it does't look like compose is a supported command.
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.
from azure-pipelines-tasks.
What is the work-around? Our organisation pipelines would fail after July once @1 docker compose is deprecated.
from azure-pipelines-tasks.
What is the work-around? Our organisation pipelines would fail after July once @1 docker compose is deprecated.
@SwapnaVersion1 You can use this workaround, it worked for us.
#19711 (comment)
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.
dockerComposePath: '/usr/libexec/docker/cli-plugins/docker-compose' - this is v2, after switching to this path, we started seeing intermittent failure on pulling base image. then I checked the image, the v1 executable is still available just not included in the PATH. So I changed to dockerComposePath: '/usr/local/bin/docker-compose', it's working for us now.
from azure-pipelines-tasks.
We started getting the following error for windows yesterday/day before:-
Starting: Build Docker Image
==============================================================================
Task : Docker Compose
Description : Build, push or run multi-container Docker applications. Task can be used with Docker or Azure Container registry.
Version : 0.240.2
Author : Microsoft Corporation
Help : https://aka.ms/azpipes-docker-compose-tsg
==============================================================================
##[error]The process 'C:\Windows\system32\docker.exe' failed with exit code 15
fix was again the dockerComposePath
dockerComposePath: C:\ProgramData\docker-compose\docker-compose.exe
from azure-pipelines-tasks.
we noticed the behavior of dockercompose@0 change too in our ubuntu agent.
The default path for docker compose is changed to version 2 after the latest runner-images rolled out. We had to put some fix into docker compose yaml due to the behavior change.
And they are going to deprecate v1 again in 9th July.
actions/runner-images#9692
from azure-pipelines-tasks.
Related Issues (20)
- [BUG]:Nothing will be added to build artifact file HOT 1
- [BUG]: Azure IoT Edge v2 - Failed to fetch container registry authentication token HOT 11
- [enhancement]: jdk source add microsoft option
- [BUG]: The system cannot find the file specified HOT 1
- [REGRESSION]: Azure file copy fails on one Agent in Pool HOT 17
- [enhancement]: Run Maven@4 task in detached mode
- [BUG]: DockerCompose task compatibility mode issue HOT 11
- [BUG]: AzurePowerShell@5 does not set environment variables on Windows HOT 2
- [REGRESSION]: DockerCompose@0 no longer supports default projectName for GitHub Repostitories HOT 21
- [REGRESSION]: Secrets cannot contain multiple lines npmAuthenticate HOT 18
- [BUG]: Object parameter between pipeline and template converts "3.10" to "3.1" HOT 4
- [BUG]: Passing tests using "DynamicData" not recognized as passed in test run
- [BUG]: Gradle task Code analysis failed if test task has failures HOT 2
- [Question]: Why is mvn clean enforced for code coverage?
- AzurePowerShell@3 - Failed to Initialize Existing Az modules HOT 5
- [BUG]: UseDotNet@2 with global.json installs incorrect SDK version HOT 2
- [BUG]: DTAExecutionHost.exe failed with code 1 - Error occurred while publishing the test results : OutOfMemoryException
- [BUG]: KUBECTL Azure Devops TASK kubernetes@1, cannot fetch access token for Azure on version 1.241.5 HOT 23
- [BUG]: FuncToolsInstaller@0 does not chmod +x the in-proc8/func binary HOT 1
- [Question]: Was there an announcement that the nuget installer would stop installing 4.3.x version of nuget? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.