siemonster :: verbose found container id
This commit is contained in:
@@ -112,10 +112,11 @@ func deployWorker(image string, identifier string, env []string) {
|
||||
|
||||
// form container id and use it as network source if it's not empty
|
||||
containerId := getThisContainerId()
|
||||
log.Printf("Found self container id: %s", containerId)
|
||||
if containerId != "" {
|
||||
hostConfig.NetworkMode = container.NetworkMode(fmt.Sprintf("container:%s", containerId))
|
||||
} else {
|
||||
log.Printf("[WARNING] Empty determined container id, continue without NetworkMode")
|
||||
log.Printf("[WARNING] Empty self container id, continue without NetworkMode")
|
||||
}
|
||||
|
||||
// ROFL: https://docker-py.readthedocs.io/en/1.4.0/volumes/
|
||||
|
||||
Reference in New Issue
Block a user