pkg/compose: defaultNetworkSettings: refactor by thaJeztah · Pull Request #13580 · docker/compose
added 2 commits
February 11, 2026 12:42- 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
deleted the
cleanup_defaultNetworkSettings
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters