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:
parent
b02393915e
commit
a73fee50dc
2 changed files with 3 additions and 1 deletions
|
@ -550,6 +550,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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue