mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
add image to conatiner view.
Update issue: https://github.com/jesseduffield/lazydocker/issues/144 Co-Authored-By: Jesse Duffield <jessedduffield@gmail.com>
This commit is contained in:
parent
8970352efc
commit
9f50809bcf
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