mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 20:21:44 +00:00
Truncating image id to 12 in docker ps
Signed-off-by: Mohammed Aaqib Ansari <maaquib@gmail.com>
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