From b454c959b41d9ca37a2f1fe725b2f8ec6b57ed7d Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AE=B9=E5=99=A8=E5=88=9B=E5=BB=BA=E5=AE=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98=20(#432)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/container.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/app/service/container.go b/backend/app/service/container.go index b3acf43dc..54388f099 100644 --- a/backend/app/service/container.go +++ b/backend/app/service/container.go @@ -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,