diff --git a/server.go b/server.go index 3e95d5849d..e96497bff3 100644 --- a/server.go +++ b/server.go @@ -262,7 +262,12 @@ func (srv *Server) Containers(all, trunc_cmd, only_ids bool, n int, since, befor displayed++ c := ApiContainers{ - Id: container.ShortId(), + Id: container.Id, + } + if trunc_cmd { + c = ApiContainers{ + Id: container.ShortId(), + } } if !only_ids {