forked from Ivasoft/traefik
Docker: Added warning if network could not be found (#1310)
* Added warning if network could not be found * Removed regex import from master * Corrected wrong function call
This commit is contained in:
@@ -412,6 +412,8 @@ func (provider *Docker) getIPAddress(container dockerData) string {
|
||||
if network != nil {
|
||||
return network.Addr
|
||||
}
|
||||
|
||||
log.Warnf("Could not find network named '%s' for container '%s'! Maybe you're missing the project's prefix in the label? Defaulting to first available network.", label, container.Name)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user