ContainerName returns the container's human-readable name.
(c *container.Summary)
| 458 | |
| 459 | // ContainerName returns the container's human-readable name. |
| 460 | func ContainerName(c *container.Summary) string { |
| 461 | if len(c.Names) == 0 { |
| 462 | return c.ID |
| 463 | } |
| 464 | return c.Names[0][1:] |
| 465 | } |
| 466 | |
| 467 | // GetContainerHealth retrieves the health status of a given container. |
| 468 | // returns status, most-recent-log |
no outgoing calls