- introduces Swarm-relevant keys, see #13634
- docs updated
Signed-off-by: Olle Jonsson <olle.jonsson@gmail.com>
... | ... |
@@ -46,6 +46,8 @@ func (cli *DockerCli) CmdInfo(args ...string) error { |
46 | 46 |
ioutils.FprintfIfNotEmpty(cli.out, "Logging Driver: %s\n", info.LoggingDriver) |
47 | 47 |
ioutils.FprintfIfNotEmpty(cli.out, "Kernel Version: %s\n", info.KernelVersion) |
48 | 48 |
ioutils.FprintfIfNotEmpty(cli.out, "Operating System: %s\n", info.OperatingSystem) |
49 |
+ ioutils.FprintfIfNotEmpty(cli.out, "OSType: %s\n", info.OSType) |
|
50 |
+ ioutils.FprintfIfNotEmpty(cli.out, "Architecture: %s\n", info.Architecture) |
|
49 | 51 |
fmt.Fprintf(cli.out, "CPUs: %d\n", info.NCPU) |
50 | 52 |
fmt.Fprintf(cli.out, "Total Memory: %s\n", units.BytesSize(float64(info.MemTotal))) |
51 | 53 |
ioutils.FprintfIfNotEmpty(cli.out, "Name: %s\n", info.Name) |
... | ... |
@@ -75,6 +75,8 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) { |
75 | 75 |
KernelVersion: kernelVersion, |
76 | 76 |
OperatingSystem: operatingSystem, |
77 | 77 |
IndexServerAddress: registry.IndexServer, |
78 |
+ OSType: runtime.GOOS, |
|
79 |
+ Architecture: runtime.GOARCH, |
|
78 | 80 |
RegistryConfig: daemon.RegistryService.Config, |
79 | 81 |
InitSha1: dockerversion.InitSHA1, |
80 | 82 |
InitPath: initPath, |
... | ... |
@@ -1884,6 +1884,7 @@ Display system-wide information |
1884 | 1884 |
Content-Type: application/json |
1885 | 1885 |
|
1886 | 1886 |
{ |
1887 |
+ "Architecture": "amd64", |
|
1887 | 1888 |
"Containers": 11, |
1888 | 1889 |
"CpuCfsPeriod": true, |
1889 | 1890 |
"CpuCfsQuota": true, |
... | ... |
@@ -1915,6 +1916,7 @@ Display system-wide information |
1915 | 1915 |
"Name": "prod-server-42", |
1916 | 1916 |
"NoProxy": "9.81.1.160", |
1917 | 1917 |
"OomKillDisable": true, |
1918 |
+ "OSType": "linux", |
|
1918 | 1919 |
"OperatingSystem": "Boot2Docker", |
1919 | 1920 |
"RegistryConfig": { |
1920 | 1921 |
"IndexConfigs": { |