mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #575 from odk-/notrunc-container-id
full container.Id display when notrunc is used
This commit is contained in:
commit
d270501de2
1 changed files with 6 additions and 1 deletions
|
@ -262,8 +262,13 @@ func (srv *Server) Containers(all, trunc_cmd, only_ids bool, n int, since, befor
|
||||||
displayed++
|
displayed++
|
||||||
|
|
||||||
c := ApiContainers{
|
c := ApiContainers{
|
||||||
|
Id: container.Id,
|
||||||
|
}
|
||||||
|
if trunc_cmd {
|
||||||
|
c = ApiContainers{
|
||||||
Id: container.ShortId(),
|
Id: container.ShortId(),
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if !only_ids {
|
if !only_ids {
|
||||||
command := fmt.Sprintf("%s %s", container.Path, strings.Join(container.Args, " "))
|
command := fmt.Sprintf("%s %s", container.Path, strings.Join(container.Args, " "))
|
||||||
|
|
Loading…
Add table
Reference in a new issue