Skip to content

v2.217.x breaks --once argument when running the agent in Docker/k8s #4142

Closed

Description

Following method all fails with running the agent in Docker.

docker run dockeragent:latest --once
    command: "--once"

in docker-compose.yaml

          args:
            - '--once'

in k8s deployment

Error message from Docker:

./env.sh: line 44: --once: invalid variable name

Error message from k8s pod:

./env.sh: line 44: --once: bad substitution

This worked fine up until v2.214.1 and then it's broken with v2.217.0.
Since docker image run always download latest version, all our agents in Docker are broken.

Docker image was built using instructions on this page: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops#linux

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

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions