mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Add live-restore state to docker info output
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user