Skip to content

[BUG]: DockerCompose@1 ##[error]unknown flag: --profile #21150

@mrlioncub

Description

@mrlioncub

New issue checklist

Task name

DockerCompose@1

Task version

1.247.0

Issue Description

- task: DockerCompose@1
  displayName: 'docker compose build'
  inputs:
    containerregistrytype: 'Container Registry'
    dockerRegistryEndpoint: 'docker-registry'
    dockerComposeFile: 'docker-compose.yaml'
    projectName: megaproject
    action: 'Build services'
    arguments: '--profile build'

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 22.04

Relevant log output

/usr/bin/docker compose -f /home/vsts/work/1/s/docker-compose.yaml -f /home/vsts/actions-runner/cached/.docker-compose.1752655739070.yml -p megaproject build --profile build
unknown flag: --profile

##[error]unknown flag: --profile
##[error]The process '/usr/bin/***' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions