Add ability to scale services automatically

This commit is contained in:
cuigh
2018-03-13 18:48:16 +08:00
parent c600bcb0dd
commit 553c666723
6 changed files with 259 additions and 13 deletions

View File

@@ -254,7 +254,7 @@ func serviceScale(ctx web.Context) error {
return err
}
err = docker.ServiceScale(name, uint64(count))
err = docker.ServiceScale(name, 0, uint64(count))
if err == nil {
biz.Event.CreateService(model.EventActionScale, name, ctx.User())
}