Skip to content

Conversation

@rumyax
Copy link
Contributor

@rumyax rumyax commented Feb 17, 2022

Description: this pull request provides an implementation of new logic that allows to specify driver when creating docker network via the AZP_AGENT_DOCKER_NETWORK_CREATE_DRIVER environment variable (agent knob).

ChangeLog:

  • src/Agent.Sdk/Knob/AgentKnobs.cs — new agent konb is added
  • src/Agent.Worker/Container/DockerCommandManager.cs — using of specified driver is implemented

Tested these changes end-to-end manually in the following cases:

  • If the AZP_AGENT_DOCKER_NETWORK_CREATE_DRIVER agent knob is NOT specified, the agent behavior remains the same.
  • If this agent knob is specified and such driver actually exists, it will be used.
  • If this agent knob is specified but such driver does not exist, a default driver will be used. Warning about this can be found in the agent diagnostic logs and in the pipeline run logs.

Related issue

@rumyax rumyax marked this pull request as draft February 17, 2022 08:26
@rumyax rumyax changed the title Add an agent knob that allows to use nat driver when creating docker network Add an agent knob that allows to choose driver when creating docker network Feb 17, 2022
@rumyax rumyax added the bug label Feb 17, 2022
@rumyax rumyax changed the title Add an agent knob that allows to choose driver when creating docker network Add an agent knob that allows to specify driver when creating docker network Feb 17, 2022
@rumyax rumyax marked this pull request as ready for review February 17, 2022 11:34
@rumyax rumyax requested a review from a team February 17, 2022 12:00
@DaniilShmelev DaniilShmelev requested a review from a team February 18, 2022 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants