mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
Merge bd8a01c89a into 7e7aadc207
This commit is contained in:
commit
6b608cbc9f
1 changed files with 5 additions and 1 deletions
|
|
@ -32,10 +32,14 @@ func GetServiceDisplayStrings(guiConfig *config.GuiConfig, service *commands.Ser
|
|||
}
|
||||
|
||||
container := service.Container
|
||||
serviceName := service.Name
|
||||
if container != nil && container.Name != "" {
|
||||
serviceName = service.Name + " (" + container.Name + ")"
|
||||
}
|
||||
return []string{
|
||||
getContainerDisplayStatus(guiConfig, container),
|
||||
getContainerDisplaySubstatus(guiConfig, container),
|
||||
service.Name,
|
||||
serviceName,
|
||||
getDisplayCPUPerc(container),
|
||||
utils.ColoredString(displayPorts(container), color.FgYellow),
|
||||
utils.ColoredString(displayContainerImage(container), color.FgMagenta),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue