diff --git a/api_params.go b/api_params.go index e4508542ef..f6c5b2f4b8 100644 --- a/api_params.go +++ b/api_params.go @@ -52,6 +52,7 @@ type APIInfo struct { Debug bool Containers int Images int + Driver string `json:",omitempty"` NFd int `json:",omitempty"` NGoroutines int `json:",omitempty"` MemoryLimit bool `json:",omitempty"` diff --git a/commands.go b/commands.go index 4b51bc4433..6fdc0cfbcd 100644 --- a/commands.go +++ b/commands.go @@ -460,6 +460,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error { fmt.Fprintf(cli.out, "Containers: %d\n", out.Containers) fmt.Fprintf(cli.out, "Images: %d\n", out.Images) + fmt.Fprintf(cli.out, "Driver: %s\n", out.Driver) if out.Debug || os.Getenv("DEBUG") != "" { fmt.Fprintf(cli.out, "Debug mode (server): %v\n", out.Debug) fmt.Fprintf(cli.out, "Debug mode (client): %v\n", os.Getenv("DEBUG") != "") diff --git a/graphdriver/driver.go b/graphdriver/driver.go index f521e0bbaf..aba3666b58 100644 --- a/graphdriver/driver.go +++ b/graphdriver/driver.go @@ -11,6 +11,8 @@ import ( type InitFunc func(root string) (Driver, error) type Driver interface { + String() string + Create(id, parent string) error Remove(id string) error diff --git a/server.go b/server.go index 1d24f73433..1f0c31d842 100644 --- a/server.go +++ b/server.go @@ -375,6 +375,7 @@ func (srv *Server) DockerInfo() *APIInfo { return &APIInfo{ Containers: len(srv.runtime.List()), Images: imgcount, + Driver: srv.runtime.driver.String(), MemoryLimit: srv.runtime.capabilities.MemoryLimit, SwapLimit: srv.runtime.capabilities.SwapLimit, IPv4Forwarding: !srv.runtime.capabilities.IPv4ForwardingDisabled,