fix(docker): [ota] update entrypoint for container creation

This commit is contained in:
Jacky 2025-05-03 09:59:16 +00:00
parent b95ef57e42
commit 563d344252
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -164,9 +164,9 @@ func UpgradeStepOne(channel string, progressChan chan<- float64) (err error) {
_, err = cli.ContainerCreate(
ctx,
&container.Config{
Image: fmt.Sprintf("%s:%s", ImageName, tag),
Cmd: upgradeCmd, // Use upgrade command instead of original command
Env: containerEnv,
Image: fmt.Sprintf("%s:%s", ImageName, tag),
Entrypoint: upgradeCmd,
Env: containerEnv,
},
&container.HostConfig{
Binds: containerInfo.HostConfig.Binds,