File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments