docker / compose

Define and run multi-container applications with Docker
https://docs.docker.com/compose/
Apache License 2.0
33.71k stars 5.19k forks source link

ci pipeline failing for .net #11923

Closed vigneshren closed 3 months ago

vigneshren commented 3 months ago

Description

We need a urgent help on CI pipeline Failure in AT stage for .Net repo , the error seems to in docker compose and there is no change in the yml file of docker , related to docker from our end . suddenly it started to fail , upon checking we found the below error. image

glours commented 3 months ago

The error message displayed the docker CLI help and not the Compose one, can you give us more details? What is the command run by your CI in this step? Which version of Docker Compose is used? What version of Docker engine are you using?

Next time, please, use the issue template as it's give us the minimal details we need to start helping you

matiaswastaken commented 3 months ago

We had the same problem, what seems to have fixed it was updating our docker CLI version from:

image

to:

image

However we have absolutely no idea what broke this and why because nothing on our side had changed, but seems that updating the docker version to latest has resolved this for us.

ndeloof commented 3 months ago

@vigneshren does the proposed workaround fix this issue for you ? We have no idea how compose is ran from this CI service, better report issue to the provider

vigneshren commented 3 months ago

Hi @ndeloof , i am just deploying the suggested change in our template , will let you know once its completed

vigneshren commented 3 months ago

Hi @matiaswastaken good day! i don't want fin the inputs field in our script whether i need to in the yaml and deploy? the same i did but for a good clarity i am asking

matiaswastaken commented 3 months ago

@vigneshren Hi! Not entirely sure if I understand what you're asking, but what I did was update the "Docker CLI Installer" task to use the latest docker engine (version found from here: https://docs.docker.com/engine/release-notes/26.1/)

image

The YAML for the Docker CLI Installer task now looks like this:


steps:
- task: DockerInstaller@0
  displayName: '[Install] Docker CLI'
  inputs:
    dockerVersion: 26.1.4
vigneshren commented 3 months ago

hi @matiaswastaken , ok got it, we don't have this task in our current setup, I just added at the beginning and triggered the pipeline.

vigneshren commented 3 months ago

hi @ndeloof, i know the details of provider? how i can reach-out to them, can you please help!

vigneshren commented 3 months ago

Hi @matiaswastaken
still its failing ! bad luck image

ndeloof commented 3 months ago

Better ask Microsoft support as I have no way to tell how compose is used inside this "azpipes docker compose" CI feature

vigneshren commented 3 months ago

Hi @glours the below are the details provided for the questions

The error message displayed the docker CLI help and not the Compose one, can you give us more details? What is the command run by your CI in this step? **# Docker-compose up

ndeloof commented 3 months ago

@vigneshren "3.8" is not a Docker Compose version but "compose file" version (obsolete). @glours was asking about the compose binary version you're running here

What is the command run by your CI in this step?

logs demonstrate command is ran with --compatibility flag. What you give us is there parameter you pass to your CI component, not the command being ran. IMHO this is a CI component issue, nothing we can do here to help you. Please report issue to component authors

vigneshren commented 3 months ago

Hi @ndeloof
we are using Docker Compose version v2.27.1 sorry dropped a comment wrongly. can you pls provide that ci component group ? thanks

ndeloof commented 3 months ago

can you pls provide that ci component group ?

You don't get it. You are not using directly docker compose, but use some azpipeline integration, which is responsible to run the compose command .. which fails. As screenshot shows, this is a component maintainer by Microsoft, we can't help you here.

I'm closing this issue for lack of requested information