Add live-restore state to docker info output

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-07-24 13:00:15 -07:00
parent b945422393
commit 189aaf8aea
3 changed files with 5 additions and 0 deletions

View File

@ -212,5 +212,8 @@ func runInfo(dockerCli *client.DockerCli) error {
fmt.Fprintf(dockerCli.Out(), " %s/%d\n", registry.IP.String(), mask)
}
}
fmt.Fprintf(dockerCli.Out(), "Live Restore Enabled: %v\n", info.LiveRestoreEnabled)
return nil
}

View File

@ -117,6 +117,7 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
HTTPSProxy: sockets.GetProxyEnv("https_proxy"),
NoProxy: sockets.GetProxyEnv("no_proxy"),
SecurityOptions: securityOptions,
LiveRestoreEnabled: daemon.configStore.LiveRestoreEnabled,
}
// TODO Windows. Refactor this more once sysinfo is refactored into

View File

@ -33,6 +33,7 @@ func (s *DockerSuite) TestInfoEnsureSucceeds(c *check.C) {
"Volume:",
"Network:",
"Security Options:",
"Live Restore Enabled:",
}
if DaemonIsLinux.Condition() {