mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue