Docker executor – What is the default Docker container network configuration?

Problem to solve

Currently, from the Docker network configuration documentation page, I’m not able to tell …

  • what the default network settings are
  • what will happen if FF_NETWORK_PER_BUILD = true is set
  • how to configure image/services network settings in a job.

I need to know:

  1. If nothing is set in configuration, which containers or host connections can be reached by any CI/CD container?
  2. If FF_NETWORK_PER_BUILD = true is set in configuration, which containers or host connections can be reached by any CI/CD container?
  3. How can I define Docker network settings for each image/service from within a CI/CD job?

NB: I’m particularly looking for information regarding GitLab Runner for Windows.

See:

Versions

Please select whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Self-hosted Runners