Signed-off-by: Zhang Kun <zkazure@gmail.com>
| ... | ... |
@@ -35,6 +35,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
| 35 | 35 |
|
| 36 | 36 |
fmt.Fprintf(cli.out, "Containers: %d\n", info.Containers) |
| 37 | 37 |
fmt.Fprintf(cli.out, "Images: %d\n", info.Images) |
| 38 |
+ fmt.Fprintf(cli.out, "Engine Version: %s\n", info.ServerVersion) |
|
| 38 | 39 |
ioutils.FprintfIfNotEmpty(cli.out, "Storage Driver: %s\n", info.Driver) |
| 39 | 40 |
if info.DriverStatus != nil {
|
| 40 | 41 |
for _, pair := range info.DriverStatus {
|
| ... | ... |
@@ -90,6 +90,7 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
|
| 90 | 90 |
DockerRootDir: daemon.config().Root, |
| 91 | 91 |
Labels: daemon.config().Labels, |
| 92 | 92 |
ExperimentalBuild: utils.ExperimentalBuild(), |
| 93 |
+ ServerVersion: dockerversion.VERSION, |
|
| 93 | 94 |
} |
| 94 | 95 |
|
| 95 | 96 |
// TODO Windows. Refactor this more once sysinfo is refactored into |
| ... | ... |
@@ -88,6 +88,7 @@ This section lists each version from latest to oldest. Each listing includes a |
| 88 | 88 |
list of DNS options to be used in the container. |
| 89 | 89 |
* `POST /build` now optionally takes a serialized map of build-time variables. |
| 90 | 90 |
* `GET /events` now includes a `timenano` field, in addition to the existing `time` field. |
| 91 |
+* `GET /info` now lists engine version information. |
|
| 91 | 92 |
|
| 92 | 93 |
### v1.20 API changes |
| 93 | 94 |
|