mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-12 11:30:07 +08:00
fix: 修复了部分容器创建完直接退出的问题 (#432)
This commit is contained in:
parent
e2d39b9ed0
commit
b454c959b4
@ -160,6 +160,8 @@ func (u *ContainerService) ContainerCreate(req dto.ContainerCreate) error {
|
|||||||
Cmd: req.Cmd,
|
Cmd: req.Cmd,
|
||||||
Env: req.Env,
|
Env: req.Env,
|
||||||
Labels: stringsToMap(req.Labels),
|
Labels: stringsToMap(req.Labels),
|
||||||
|
Tty: true,
|
||||||
|
OpenStdin: true,
|
||||||
}
|
}
|
||||||
hostConf := &container.HostConfig{
|
hostConf := &container.HostConfig{
|
||||||
AutoRemove: req.AutoRemove,
|
AutoRemove: req.AutoRemove,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user