Skip to content

Commit

Permalink
update the way environment variables are displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Sep 9, 2022
1 parent 314dbda commit aac8fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route/v1/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit aac8fe8

Please sign in to comment.