More descriptive, easier to process container portmappings information in the API

This commit is contained in:
shin-
2013-08-28 00:20:35 +02:00
parent 4a3b039c2a
commit 98018df078
6 changed files with 50 additions and 16 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ func (srv *Server) Containers(all, size bool, n int, since, before string) []API
c.Command = fmt.Sprintf("%s %s", container.Path, strings.Join(container.Args, " "))
c.Created = container.Created.Unix()
c.Status = container.State.String()
c.Ports = container.NetworkSettings.PortMappingHuman()
c.Ports = container.NetworkSettings.PortMappingAPI()
if size {
c.SizeRw, c.SizeRootFs = container.GetSize()
}