actions / runner-images

GitHub Actions runner images
MIT License
9.37k stars 2.9k forks source link

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

Open bhanusridhar opened 1 week ago

bhanusridhar commented 1 week ago

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

Runner images affected

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 commented 1 week ago

@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 commented 1 week ago

@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 commented 1 week ago

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 commented 1 week ago

@RaviAkshintala Any update here please?

Peralysis commented 6 days ago

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

w1s3one805 commented 5 days ago

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

  • [X] 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
  • [X] Windows Server 2019
  • [X] 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 commented 5 days ago

@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 commented 4 days ago

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

RaviAkshintala commented 4 days ago

@bhanusridhar -Can you please try the below workarounds and update me.

  1. Specify a projectName (in lowercase) in the azure-pipeline.yml DockerCompose@0 task.
  2. If you have DockerCompose V2 as cli plugin. Specify the path to docker-compose as task parameter dockerComposePath: '/usr/libexec/docker/cli-plugins/docker-compose'