diff --git a/api/client/ps/custom.go b/api/client/ps/custom.go index 6d2518b5b2..261493ab9a 100644 --- a/api/client/ps/custom.go +++ b/api/client/ps/custom.go @@ -64,6 +64,9 @@ func (c *containerContext) Image() string { if c.c.Image == "" { return "" } + if c.trunc { + return stringutils.Truncate(c.c.Image, 12) + } return c.c.Image }