Skip to content

Add support for docker network options#583

Merged
bmahler merged 1 commit intoapache:masterfrom
AVENTER-UG:add-docker-net-arg
May 29, 2024
Merged

Add support for docker network options#583
bmahler merged 1 commit intoapache:masterfrom
AVENTER-UG:add-docker-net-arg

Conversation

@andreaspeters
Copy link
Contributor

Short:

With these PR I want to add support for custom docker networks created by docker network ...

Long:

The Mesos DockerInfo Network object only supports four network modes: BRIDGE, HOST, USER, and NONE. If we want to use a network created by the Docker command docker network create ..., we cannot use the network mode. In that case, we have to add the DockerInfo parameter. The problem is, if we do not add a DockerInfo network mode, then the Docker executor will add a default one (Lines 839, 841). This means the Docker executor will try to run the container with two network parameters. Newer Docker engines do not accept this. To address this, my idea is to only add a default network mode if DockerInfo has no network and also no network parameter.

@bmahler bmahler merged commit 5c3b039 into apache:master May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants