mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
env-var
This commit is contained in:
@ -104,6 +104,9 @@ 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]", string(env))
|
||||
}
|
||||
c.SetState(insp.State.Status)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user