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:
Sebastian
2017-03-19 18:40:09 +01:00
committed by Emile Vauge
parent 75d92c6967
commit 8010758b29
2 changed files with 3 additions and 1 deletions

View File

@@ -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)
}
}