Truncating image id to 12 in docker ps
Signed-off-by: Mohammed Aaqib Ansari <maaquib@gmail.com> Upstream-commit: 1a2ccf59eefc14c6bd5abb23f0556ffc5c77bacf Component: engine
This commit is contained in:
@@ -64,6 +64,9 @@ func (c *containerContext) Image() string {
|
||||
if c.c.Image == "" {
|
||||
return "<no image>"
|
||||
}
|
||||
if c.trunc {
|
||||
return stringutils.Truncate(c.c.Image, 12)
|
||||
}
|
||||
return c.c.Image
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user