mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Merge pull request #1541 from docker/net_bridge
don't set aliasses if no network binding was declared
This commit is contained in:
commit
fb5d51f880
1 changed files with 3 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue