fix: Fixed Changing the runtime container name may cause it to fail to start (#9670)

Refs https://github.com/1Panel-dev/1Panel/issues/9666
This commit is contained in:
CityFun
2025-07-25 11:03:35 +00:00
committed by GitHub
parent b3d9cc156a
commit da606826c6
+1
View File
@@ -450,6 +450,7 @@ func (r *RuntimeService) Update(req request.RuntimeUpdate) error {
if err := checkContainerName(containerName.(string)); err != nil {
return err
}
runtime.ContainerName = containerName.(string)
}
projectDir := path.Join(global.Dir.RuntimeDir, runtime.Type, runtime.Name)