pkg/compose: defaultNetworkSettings: refactor by thaJeztah · Pull Request #13580 · docker/compose

added 2 commits

February 11, 2026 12:42
…ture

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- use an intermediate serviceNetworks slice so that we don't have
  to call service.NetworksByPriority multiple times.
- shift the primary network from the slice (if any), so that
  we can drop some checks for "additional networks"
- group code related to setting up the primary network as first
  step, then append remaining networks.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

@thaJeztah thaJeztah deleted the cleanup_defaultNetworkSettings branch

February 11, 2026 15:06

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request

Feb 25, 2026

@tmeijn