Browse Source

update the way environment variables are displayed

LinkLeong 2 năm trước cách đây
mục cha
commit
aac8fe85ba
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      route/v1/docker.go

+ 2 - 2
route/v1/docker.go

@@ -38,7 +38,7 @@ var upgrader = websocket.Upgrader{
 	HandshakeTimeout: time.Duration(time.Second * 5),
 	HandshakeTimeout: time.Duration(time.Second * 5),
 }
 }
 
 
-//打开docker的terminal
+// 打开docker的terminal
 func DockerTerminal(c *gin.Context) {
 func DockerTerminal(c *gin.Context) {
 	col := c.DefaultQuery("cols", "100")
 	col := c.DefaultQuery("cols", "100")
 	row := c.DefaultQuery("rows", "30")
 	row := c.DefaultQuery("rows", "30")
@@ -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],