2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

feat: 创建容器后自动启动

This commit is contained in:
耗子
2024-06-12 01:09:09 +08:00
parent 44045da4eb
commit 5f504d49ef

View File

@@ -201,6 +201,10 @@ func (r *ContainerController) ContainerCreate(ctx http.Context) http.Response {
return Error(ctx, http.StatusInternalServerError, err.Error())
}
if err = r.container.ContainerStart(id); err != nil {
return Error(ctx, http.StatusInternalServerError, err.Error())
}
return Success(ctx, id)
}