mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
#243 Fix bug: show ENV variables
Previously only last env variable is shown
This commit is contained in:
@ -175,9 +175,7 @@ func (cm *Docker) refresh(c *container.Container) {
|
||||
c.SetMeta("ports", portsFormat(insp.NetworkSettings.Ports))
|
||||
c.SetMeta("created", insp.Created.Format("Mon Jan 2 15:04:05 2006"))
|
||||
c.SetMeta("health", insp.State.Health.Status)
|
||||
for _, env := range insp.Config.Env {
|
||||
c.SetMeta("[ENV-VAR]", env)
|
||||
}
|
||||
c.SetMeta("[ENV-VAR]", strings.Join(insp.Config.Env, ";"))
|
||||
c.SetState(insp.State.Status)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user