siemonster :: remove IpcMode
This commit is contained in:
@@ -114,9 +114,8 @@ func deployWorker(image string, identifier string, env []string) {
|
|||||||
containerId := getThisContainerId()
|
containerId := getThisContainerId()
|
||||||
if containerId != "" {
|
if containerId != "" {
|
||||||
hostConfig.NetworkMode = container.NetworkMode(fmt.Sprintf("container:%s", containerId))
|
hostConfig.NetworkMode = container.NetworkMode(fmt.Sprintf("container:%s", containerId))
|
||||||
hostConfig.IpcMode = container.IpcMode(fmt.Sprintf("container:%s", containerId))
|
|
||||||
} else {
|
} else {
|
||||||
log.Printf("[WARNING] Empty determined container id, continue without NetworkMode/IpcMode")
|
log.Printf("[WARNING] Empty determined container id, continue without NetworkMode")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ROFL: https://docker-py.readthedocs.io/en/1.4.0/volumes/
|
// ROFL: https://docker-py.readthedocs.io/en/1.4.0/volumes/
|
||||||
|
|||||||
@@ -438,9 +438,8 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
|
|||||||
containerId := getThisContainerId()
|
containerId := getThisContainerId()
|
||||||
if containerId != "" {
|
if containerId != "" {
|
||||||
hostConfig.NetworkMode = container.NetworkMode(fmt.Sprintf("container:%s", containerId))
|
hostConfig.NetworkMode = container.NetworkMode(fmt.Sprintf("container:%s", containerId))
|
||||||
hostConfig.IpcMode = container.IpcMode(fmt.Sprintf("container:%s", containerId))
|
|
||||||
} else {
|
} else {
|
||||||
log.Printf("[WARNING] Empty determined container id, continue without NetworkMode/IpcMode")
|
log.Printf("[WARNING] Empty determined container id, continue without NetworkMode")
|
||||||
}
|
}
|
||||||
|
|
||||||
config := &container.Config{
|
config := &container.Config{
|
||||||
|
|||||||
Reference in New Issue
Block a user