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

This PR adds a new environment variable DRONE_RUNNER_NETWORK_IPAM_SUBNET to the drone-runner-docker project. This variable allows users to specify a custom subnet for the Docker network created by the runner. #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t924417424
Copy link

This PR adds a new environment variable DRONE_RUNNER_NETWORK_IPAM_SUBNET to the drone-runner-docker project. This variable allows users to specify a custom subnet for the Docker network created by the runner.

This is useful in situations where the default subnets used by Docker conflict with the host's network configuration, causing errors such as "Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network".

To use this option, users can set the DRONE_RUNNER_NETWORK_IPAM_SUBNET environment variable to a valid CIDR-formatted subnet, such as "192.168.1.0/24". The runner will then use this subnet when creating the Docker network.

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2023

CLA assistant check
All committers have signed the CLA.

@ying-jeanne
Copy link

ying-jeanne commented Mar 7, 2024

Hi, could someone give this a look, we also run into similar issue that adding more subnet would be very convenient. Maybe @eoinmcafee00

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.

3 participants