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

Can i change the docker network when a vsts container is created? #4863

Open
1 of 4 tasks
andrescolodrero opened this issue Jun 23, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@andrescolodrero
Copy link

andrescolodrero commented Jun 23, 2024

Describe your question

Can i change the docker network when a vsts container is created?
When creating a new container, vsts agent creates it is own random network.
i tried the settings;
container:
image: my_container
options: --pull=missing --network bridge

but it is always created the vsts_network:
/usr/bin/docker create --name xxx --label d2e6c3 --network vsts_network_b6afc1df51e6422b92b16d970a38edcc --pull=missing --network bridge -v "/var/run/docker.sock":"/var/run/docker.sock" -v .....

docker: conflicting options: cannot attach both user-defined and non-user-defined network-modes.

Versions

Azure Devops Agent 3.232.x

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

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

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Operation system

2022

Version controll system

No response

Azure DevOps Server Version (if applicable)

No response

@vmapetr
Copy link
Contributor

vmapetr commented Jul 26, 2024

Hi @andrescolodrero thanks for reporting!
We are working on more prioritized issues at the moment, but will get back to this one soon.

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

3 participants