Add container RestartPolicy.
continuous-integration/drone/push Build is passing Details

master
Thomas BELLEMBOIS 2 years ago
parent 94d5f3fb78
commit 928b397712

@ -303,7 +303,8 @@ func StartContainer(wsCtx context.Context, wsConnection *websocket.Conn, codeFir
Env: codeFirstContainer.Env,
}
hostConfig := &container.HostConfig{
NetworkMode: container.NetworkMode(globals.DockerNetworkName),
NetworkMode: container.NetworkMode(globals.DockerNetworkName),
RestartPolicy: container.RestartPolicy{Name: "unless-stopped"},
}
networkingConfig := &network.NetworkingConfig{}

Loading…
Cancel
Save