1
0
Fork 0

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 b02393915e
commit a73fee50dc
No known key found for this signature in database
GPG key ID: D808B4C167352E59
2 changed files with 3 additions and 1 deletions

View file

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