diff --git a/backend/app/service/container.go b/backend/app/service/container.go index 2ab9f5a76..9dcbd8cb7 100644 --- a/backend/app/service/container.go +++ b/backend/app/service/container.go @@ -331,6 +331,9 @@ func (u *ContainerService) ContainerCreate(req dto.ContainerOperate) error { if len(req.Entrypoint) == 0 { req.Entrypoint = imageInfo.Config.Entrypoint } + if len(req.Cmd) == 0 { + req.Cmd = imageInfo.Config.Cmd + } config, hostConf, networkConf, err := loadConfigInfo(true, req, nil) if err != nil { return err