Skip to content

Commit 6965f40

Browse files
authored
Merge pull request #5422 from thaJeztah/info_no_expected_version
info: stop printing "Expected" commits
2 parents a464a63 + 88ca4e9 commit 6965f40

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

cli/command/system/info.go

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -273,21 +273,9 @@ func prettyPrintServerInfo(streams command.Streams, info *dockerInfo) []error {
273273

274274
if info.OSType == "linux" {
275275
fprintln(output, " Init Binary:", info.InitBinary)
276-
277-
for _, ci := range []struct {
278-
Name string
279-
Commit system.Commit
280-
}{
281-
{"containerd", info.ContainerdCommit},
282-
{"runc", info.RuncCommit},
283-
{"init", info.InitCommit},
284-
} {
285-
fprintf(output, " %s version: %s", ci.Name, ci.Commit.ID)
286-
if ci.Commit.ID != ci.Commit.Expected {
287-
fprintf(output, " (expected: %s)", ci.Commit.Expected)
288-
}
289-
fprintln(output)
290-
}
276+
fprintln(output, " containerd version:", info.ContainerdCommit.ID)
277+
fprintln(output, " runc version:", info.RuncCommit.ID)
278+
fprintln(output, " init version:", info.InitCommit.ID)
291279
if len(info.SecurityOptions) != 0 {
292280
if kvs, err := system.DecodeSecurityOptions(info.SecurityOptions); err != nil {
293281
errs = append(errs, err)

0 commit comments

Comments
 (0)