Print devicemapper status details in docker info

This adds a generic Status call in the Driver api and
implements if for the devicemapper backend.

The status is an array of key/value strings rather than a map so that
we can guarantee some static order of the docker info output.
This commit is contained in:
Alexander Larsson
2013-11-15 11:04:02 +01:00
parent 062810caed
commit 243843c078
7 changed files with 40 additions and 10 deletions
+1
View File
@@ -376,6 +376,7 @@ func (srv *Server) DockerInfo() *APIInfo {
Containers: len(srv.runtime.List()),
Images: imgcount,
Driver: srv.runtime.driver.String(),
DriverStatus: srv.runtime.driver.Status(),
MemoryLimit: srv.runtime.capabilities.MemoryLimit,
SwapLimit: srv.runtime.capabilities.SwapLimit,
IPv4Forwarding: !srv.runtime.capabilities.IPv4ForwardingDisabled,