mirror of https://github.com/docker/cli.git
Merge pull request #5422 from thaJeztah/info_no_expected_version
info: stop printing "Expected" commits
This commit is contained in:
commit
6965f40090
|
@ -273,21 +273,9 @@ func prettyPrintServerInfo(streams command.Streams, info *dockerInfo) []error {
|
||||||
|
|
||||||
if info.OSType == "linux" {
|
if info.OSType == "linux" {
|
||||||
fprintln(output, " Init Binary:", info.InitBinary)
|
fprintln(output, " Init Binary:", info.InitBinary)
|
||||||
|
fprintln(output, " containerd version:", info.ContainerdCommit.ID)
|
||||||
for _, ci := range []struct {
|
fprintln(output, " runc version:", info.RuncCommit.ID)
|
||||||
Name string
|
fprintln(output, " init version:", info.InitCommit.ID)
|
||||||
Commit system.Commit
|
|
||||||
}{
|
|
||||||
{"containerd", info.ContainerdCommit},
|
|
||||||
{"runc", info.RuncCommit},
|
|
||||||
{"init", info.InitCommit},
|
|
||||||
} {
|
|
||||||
fprintf(output, " %s version: %s", ci.Name, ci.Commit.ID)
|
|
||||||
if ci.Commit.ID != ci.Commit.Expected {
|
|
||||||
fprintf(output, " (expected: %s)", ci.Commit.Expected)
|
|
||||||
}
|
|
||||||
fprintln(output)
|
|
||||||
}
|
|
||||||
if len(info.SecurityOptions) != 0 {
|
if len(info.SecurityOptions) != 0 {
|
||||||
if kvs, err := system.DecodeSecurityOptions(info.SecurityOptions); err != nil {
|
if kvs, err := system.DecodeSecurityOptions(info.SecurityOptions); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
|
|
Loading…
Reference in New Issue