Add live-restore state to docker info output
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
b945422393
commit
189aaf8aea
3 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -33,6 +33,7 @@ func (s *DockerSuite) TestInfoEnsureSucceeds(c *check.C) {
|
|||
"Volume:",
|
||||
"Network:",
|
||||
"Security Options:",
|
||||
"Live Restore Enabled:",
|
||||
}
|
||||
|
||||
if DaemonIsLinux.Condition() {
|
||||
|
|
Loading…
Add table
Reference in a new issue