()
| 53 | } |
| 54 | |
| 55 | func (i *dockerInfo) clientPlatform() string { |
| 56 | if i.ClientInfo != nil && i.ClientInfo.Platform != nil { |
| 57 | return i.ClientInfo.Platform.Name |
| 58 | } |
| 59 | return "" |
| 60 | } |
| 61 | |
| 62 | // newInfoCommand creates a new cobra.Command for `docker info` |
| 63 | func newInfoCommand(dockerCLI command.Cli) *cobra.Command { |