mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 10:41:14 +00:00
Review feedback
This commit is contained in:
@@ -386,7 +386,6 @@ func (c *container) env() map[string]string {
|
|||||||
func (c *container) getBaseNode() report.Node {
|
func (c *container) getBaseNode() report.Node {
|
||||||
result := report.MakeNodeWith(report.MakeContainerNodeID(c.ID()), map[string]string{
|
result := report.MakeNodeWith(report.MakeContainerNodeID(c.ID()), map[string]string{
|
||||||
ContainerID: c.ID(),
|
ContainerID: c.ID(),
|
||||||
ContainerName: strings.TrimPrefix(c.container.Name, "/"),
|
|
||||||
ContainerCreated: c.container.Created.Format(time.RFC822),
|
ContainerCreated: c.container.Created.Format(time.RFC822),
|
||||||
ContainerCommand: c.container.Path + " " + strings.Join(c.container.Args, " "),
|
ContainerCommand: c.container.Path + " " + strings.Join(c.container.Args, " "),
|
||||||
ImageID: c.Image(),
|
ImageID: c.Image(),
|
||||||
@@ -416,6 +415,7 @@ func (c *container) GetNode() report.Node {
|
|||||||
if c.container.HostConfig != nil {
|
if c.container.HostConfig != nil {
|
||||||
networkMode = c.container.HostConfig.NetworkMode
|
networkMode = c.container.HostConfig.NetworkMode
|
||||||
}
|
}
|
||||||
|
latest[ContainerName] = strings.TrimPrefix(c.container.Name, "/")
|
||||||
latest[ContainerUptime] = uptime.String()
|
latest[ContainerUptime] = uptime.String()
|
||||||
latest[ContainerRestartCount] = strconv.Itoa(c.container.RestartCount)
|
latest[ContainerRestartCount] = strconv.Itoa(c.container.RestartCount)
|
||||||
latest[ContainerNetworkMode] = networkMode
|
latest[ContainerNetworkMode] = networkMode
|
||||||
|
|||||||
Reference in New Issue
Block a user