update the way environment variables are displayed

This commit is contained in:
LinkLeong 2022-09-09 06:46:51 +01:00
parent 314dbdab57
commit aac8fe85ba

View File

@ -1126,7 +1126,7 @@ func ContainerUpdateInfo(c *gin.Context) {
} }
} }
for _, v := range info.Config.Env { 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 { if _, ok := showENVMap[strings.Split(v, "=")[0]]; ok {
temp := model.Env{ temp := model.Env{
Name: strings.Split(v, "=")[0], Name: strings.Split(v, "=")[0],