Fixed most of user input continuations

This commit is contained in:
frikky
2020-11-16 18:37:04 +01:00
parent 3f98f986e7
commit ae39da8ffd
6 changed files with 400 additions and 119 deletions
+15 -1
View File
@@ -145,7 +145,21 @@ func deployWorker(image string, identifier string, env []string) {
if err != nil {
log.Printf("[ERROR] Container create error: %s", err)
return
identifier := fmt.Sprintf("%s-new", identifier)
cont, err = dockercli.ContainerCreate(
context.Background(),
config,
hostConfig,
nil,
nil,
identifier,
)
if err != nil {
log.Printf("[ERROR] Container create error(2): %s", err)
return
}
}
err = dockercli.ContainerStart(context.Background(), cont.ID, types.ContainerStartOptions{})