mirror of https://github.com/1Panel-dev/1Panel
fix: 修复了部分容器创建完直接退出的问题 (#432)
parent
e2d39b9ed0
commit
b454c959b4
|
@ -156,10 +156,12 @@ func (u *ContainerService) ContainerCreate(req dto.ContainerCreate) error {
|
|||
return err
|
||||
}
|
||||
config := &container.Config{
|
||||
Image: req.Image,
|
||||
Cmd: req.Cmd,
|
||||
Env: req.Env,
|
||||
Labels: stringsToMap(req.Labels),
|
||||
Image: req.Image,
|
||||
Cmd: req.Cmd,
|
||||
Env: req.Env,
|
||||
Labels: stringsToMap(req.Labels),
|
||||
Tty: true,
|
||||
OpenStdin: true,
|
||||
}
|
||||
hostConf := &container.HostConfig{
|
||||
AutoRemove: req.AutoRemove,
|
||||
|
|
Loading…
Reference in New Issue