Truncating image id to 12 in docker ps
Signed-off-by: Mohammed Aaqib Ansari <maaquib@gmail.com>
This commit is contained in:
parent
1e2765dabb
commit
1a2ccf59ee
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue