mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 23:21:03 +00:00
Merge pull request #145 from anjiawei1991/master
add image to conatiner view.
This commit is contained in:
commit
b305558f5e
1 changed files with 3 additions and 1 deletions
|
|
@ -248,7 +248,9 @@ type ContainerCliStat struct {
|
|||
|
||||
// GetDisplayStrings returns the dispaly string of Container
|
||||
func (c *Container) GetDisplayStrings(isFocused bool) []string {
|
||||
return []string{c.GetDisplayStatus(), c.Name, c.GetDisplayCPUPerc()}
|
||||
image := strings.TrimPrefix(c.Container.Image, "sha256:")
|
||||
|
||||
return []string{c.GetDisplayStatus(), c.Name, c.GetDisplayCPUPerc(), utils.ColoredString(image, color.FgMagenta)}
|
||||
}
|
||||
|
||||
// GetDisplayStatus returns the colored status of the container
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue