Skip to content
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 task failing with Exit code 125\15 #10101

Open
3 of 14 tasks
bhanusridhar opened this issue Jun 20, 2024 · 8 comments
Open
3 of 14 tasks

Docker Compose task failing with Exit code 125\15 #10101

bhanusridhar opened this issue Jun 20, 2024 · 8 comments

Comments

@bhanusridhar
Copy link

Description

From today afternoon IST, Docker compose task is failing in Azure devops pipeline with Exit code.
Microsoft hosted agent:
image
Self hosted agent:
image

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

No. We have private repository

Is it regression?

Not sure

Expected behavior

Should be able to run docker compose task

Actual behavior

Should be able to run docker compose task

Repro steps

  1. Able to pull the DB image and spin up the container using docker compose task.
@RaviAkshintala
Copy link

@bhanusridhar Thank you for bringing this issue to us, we are investigating on this issue and we will update you on this issue after our findings.

@RaviAkshintala
Copy link

@bhanusridhar Can you please share the Docker-compose file and Azure pipeline yaml file to investigate further, it would be great if you could provide us.

@bhanusridhar
Copy link
Author

Docker compose file:

version: "3.9"
services:
  sql-server-db:
    container_name: testcontainer
    image: acr.azurecr.io/testimage:v1
    ports:
      - "1433:1433"
    environment:
      SA_PASSWORD: "PWD"
      ACCEPT_EULA: "Y"
      HOSTNAME: ${COMPUTERNAME}
    volumes:
      - C:\Volume1:C:\MountToHost

Yaml pipeline: I am mentioning the tasks here:

          - task: Docker@2
            displayName: 'Login to registry'
            inputs:
              containerRegistry: 'ServiceConnection'
              command: 'login'
          
          - task: DockerCompose@0
            displayName: Pull DB image
            inputs:
              containerregistrytype: 'Container Registry'
              dockerRegistryEndpoint: 'ServiceConnection'
              dockerComposeFile: '$(DockerComposeFile)'
              action: Run a Docker Compose command
              dockerComposeCommand: pull
          
          - task: DockerCompose@0
            displayName: Spin up DB container
            inputs:
              containerregistrytype: 'Container Registry'
              dockerRegistryEndpoint: 'ServiceConnection'
              dockerComposeFile: '$(DockerComposeFile)'
              action: Run a Docker Compose command
              dockerComposeCommand: up
              arguments: '-d'

@RaviAkshintala Please let me know if any information required.

@bhanusridhar
Copy link
Author

@RaviAkshintala Any update here please?

@Peralysis
Copy link

There was an issue with the DockerCompose@0 task causing these errors. The resolution here worked for us: microsoft/azure-pipelines-tasks#20045

@w1s3one805
Copy link

Description

From today afternoon IST, Docker compose task is failing in Azure devops pipeline with Exit code.
Microsoft hosted agent:
image
Self hosted agent:
image

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

No. We have private repository

Is it regression?

Not sure

Expected behavior

Should be able to run docker compose task

Actual behavior

Should be able to run docker compose task

Repro steps

  1. Able to pull the DB image and spin up the container using docker compose task.

@RaviAkshintala
Copy link

RaviAkshintala commented Jun 27, 2024

@bhanusridhar Could you please modify the volume syntax path of the Docker compose file and try again.

version: "3.9"
services:
  sql-server-db:
    container_name: testcontainer
    image: acr.azurecr.io/testimage:v1
    ports:
      - "1433:1433"
    environment:
      SA_PASSWORD: "PWD"
      ACCEPT_EULA: "Y"
      HOSTNAME: ${COMPUTERNAME}
    volumes:
        - //c/Volume1://c/MountToHost

@bhanusridhar
Copy link
Author

@RaviAkshintala Why to comment the volume as issue might be with v1 task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants