From aac8fe85bad5e3d907e85e6866bcdbad36c37f56 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Fri, 9 Sep 2022 06:46:51 +0100 Subject: [PATCH] update the way environment variables are displayed --- route/v1/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/v1/docker.go b/route/v1/docker.go index 6eb534413..05ebddf46 100644 --- a/route/v1/docker.go +++ b/route/v1/docker.go @@ -38,7 +38,7 @@ var upgrader = websocket.Upgrader{ HandshakeTimeout: time.Duration(time.Second * 5), } -//打开docker的terminal +// 打开docker的terminal func DockerTerminal(c *gin.Context) { col := c.DefaultQuery("cols", "100") row := c.DefaultQuery("rows", "30") @@ -1126,7 +1126,7 @@ func ContainerUpdateInfo(c *gin.Context) { } } for _, v := range info.Config.Env { - if len(showENVList) > 0 { + if len(showENVList) > 0 && info.Config.Labels["origin"] != "local" { if _, ok := showENVMap[strings.Split(v, "=")[0]]; ok { temp := model.Env{ Name: strings.Split(v, "=")[0],