Start container when it's updated
This commit is contained in:
parent
c714274a98
commit
865a9a187e
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -166,6 +166,11 @@ func main() {
|
|||
return c.JSONPretty(http.StatusInternalServerError, Message{Message: err.Error()}, JSONIndent)
|
||||
}
|
||||
|
||||
err = container.Start()
|
||||
if err != nil {
|
||||
return c.JSONPretty(http.StatusInternalServerError, Message{Message: err.Error()}, JSONIndent)
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusOK, Message{Message: "ok"})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue