You've already forked compose-cli
mirror of
https://github.com/docker/compose-cli.git
synced 2026-10-25 06:19:18 +03:00
don't set aliasses if no network binding was declared
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
@@ -850,6 +850,9 @@ func buildTmpfsOptions(tmpfs *types.ServiceVolumeTmpfs) *mount.TmpfsOptions {
|
||||
}
|
||||
|
||||
func buildDefaultNetworkConfig(s types.ServiceConfig, networkMode container.NetworkMode, containerName string) *network.NetworkingConfig {
|
||||
if len(s.Networks) == 0 {
|
||||
return nil
|
||||
}
|
||||
config := map[string]*network.EndpointSettings{}
|
||||
net := string(networkMode)
|
||||
config[net] = &network.EndpointSettings{
|
||||
|
||||
Reference in New Issue
Block a user