1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Sebastiaan van Stijn 2137b8ccf2
Add containerd, runc, and docker-init versions to /version
This patch adds version information about the containerd,
runc, and docker-init components to the /version endpoint.

With this patch applied, running:

```
curl --unix-socket /var/run/docker.sock http://localhost/version | jq .
```

Will produce this response:

```json
{
  "Platform": {
    "Name": ""
  },
  "Components": [
    {
      "Name": "Engine",
      "Version": "dev",
      "Details": {
        "ApiVersion": "1.40",
        "Arch": "amd64",
        "BuildTime": "2018-11-08T10:23:42.000000000+00:00",
        "Experimental": "false",
        "GitCommit": "7d02782d2f",
        "GoVersion": "go1.11.2",
        "KernelVersion": "4.9.93-linuxkit-aufs",
        "MinAPIVersion": "1.12",
        "Os": "linux"
      }
    },
    {
      "Name": "containerd",
      "Version": "v1.1.4",
      "Details": {
        "GitCommit": "9f2e07b1fc1342d1c48fe4d7bbb94cb6d1bf278b"
      }
    },
    {
      "Name": "runc",
      "Version": "1.0.0-rc5+dev",
      "Details": {
        "GitCommit": "a00bf0190895aa465a5fbed0268888e2c8ddfe85"
      }
    },
    {
      "Name": "docker-init",
      "Version": "0.18.0",
      "Details": {
        "GitCommit": "fec3683"
      }
    }
  ],
  "Version": "dev",
  "ApiVersion": "1.40",
  "MinAPIVersion": "1.12",
  "GitCommit": "7d02782d2f",
  "GoVersion": "go1.11.2",
  "Os": "linux",
  "Arch": "amd64",
  "KernelVersion": "4.9.93-linuxkit-aufs",
  "BuildTime": "2018-11-08T10:23:42.000000000+00:00"
}
```

When using a recent version of the CLI, that information is included in the
output of `docker version`:

```
Client: Docker Engine - Community
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:46:51 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          dev
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.11.2
  Git commit:       7d02782d2f
  Built:            Thu Nov  8 10:23:42 2018
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.1.4
  GitCommit:        9f2e07b1fc1342d1c48fe4d7bbb94cb6d1bf278b
 runc:
  Version:          1.0.0-rc5+dev
  GitCommit:        a00bf0190895aa465a5fbed0268888e2c8ddfe85
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-14 23:27:05 +01:00
..
cluster Added support for maximum replicas per node to services 2018-12-24 02:04:15 +02:00
config Use errors.Wrap() in daemon/config 2018-11-30 01:27:47 +01:00
discovery
events
exec
graphdriver pkg/mount: wrap mount/umount errors 2018-12-10 20:07:02 -08:00
images cli: fix images filter when use multi reference filter 2018-11-22 10:33:45 +08:00
initlayer
links
listeners Use idtools.LookupGroup instead of parsing /etc/group file for docker.sock ownership 2018-11-29 16:24:42 -05:00
logger Follow up to PR 38407 2019-01-03 01:23:24 +00:00
names
network
stats
testdata
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_tarcopyoptions.go
archive_tarcopyoptions_unix.go
archive_tarcopyoptions_windows.go
archive_unix.go
archive_windows.go
attach.go
auth.go
bindmount_unix.go
changes.go
checkpoint.go fix typo 2018-12-28 01:30:31 +01:00
cluster.go
commit.go
configs.go
configs_linux.go
configs_unsupported.go
configs_windows.go
container.go Extract container-config and container-hostconfig validation 2018-12-19 13:09:12 +01:00
container_linux.go
container_operations.go
container_operations_unix.go UnmountIpcMount: simplify 2018-12-10 20:06:10 -08:00
container_operations_windows.go UnmountIpcMount: simplify 2018-12-10 20:06:10 -08:00
container_unix_test.go
container_windows.go
create.go
create_test.go
create_unix.go
create_windows.go
daemon.go Fix go vet issue in daemon/daemon.go 2019-01-06 00:18:29 +00:00
daemon_linux.go
daemon_linux_test.go
daemon_test.go
daemon_unix.go Merge pull request #38301 from cyphar/waitgroup-limits 2018-12-22 00:07:55 +09:00
daemon_unix_test.go Rename verifyContainerResources to verifyPlatformContainerResources 2018-12-19 10:24:09 +01:00
daemon_unsupported.go
daemon_windows.go Merge pull request #38301 from cyphar/waitgroup-limits 2018-12-22 00:07:55 +09:00
daemon_windows_test.go
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go
delete_test.go
dependency.go
disk_usage.go
errors.go Replace deprecated grpc.ErrorDesc() and grpc.Code() calls 2018-12-30 12:34:28 +01:00
events.go
events_test.go
exec.go
exec_linux.go Move caps and device spec utils to oci pkg 2018-12-11 10:20:25 -05:00
exec_linux_test.go
exec_windows.go
export.go
health.go
health_test.go
info.go Add containerd, runc, and docker-init versions to /version 2019-01-14 23:27:05 +01:00
info_test.go
info_unix.go Add containerd, runc, and docker-init versions to /version 2019-01-14 23:27:05 +01:00
info_unix_test.go Add containerd, runc, and docker-init versions to /version 2019-01-14 23:27:05 +01:00
info_windows.go Add containerd, runc, and docker-init versions to /version 2019-01-14 23:27:05 +01:00
inspect.go
inspect_linux.go
inspect_test.go
inspect_windows.go
keys.go
keys_unsupported.go
kill.go
licensing.go
licensing_test.go go vet fix for TestfillLicense 2018-12-09 00:51:37 +00:00
links.go
list.go
list_test.go
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
metrics.go Fix typo: adapater -> adapter 2018-10-08 19:15:38 +08:00
metrics_unix.go Fix typo: adapater -> adapter 2018-10-08 19:15:38 +08:00
metrics_unsupported.go
monitor.go
mounts.go
names.go
network.go
oci_linux.go Move caps and device spec utils to oci pkg 2018-12-11 10:20:25 -05:00
oci_linux_test.go oci: add integration tests for kernel.domainname configuration 2018-11-30 19:44:50 +11:00
oci_windows.go Move caps and device spec utils to oci pkg 2018-12-11 10:20:25 -05:00
pause.go
prune.go
reload.go Fix possible segfault in config reload 2019-01-10 15:34:02 +01:00
reload_test.go
reload_unix.go
reload_windows.go
rename.go
resize.go
resize_test.go
restart.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
secrets_windows.go
selinux_linux.go
selinux_unsupported.go
start.go UnmountIpcMount: simplify 2018-12-10 20:06:10 -08:00
start_unix.go
start_windows.go
stats.go
stats_collector.go
stats_unix.go
stats_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
trustkey.go
trustkey_test.go
unpause.go
update.go
update_linux.go
update_windows.go
util_test.go
volumes.go
volumes_linux.go
volumes_linux_test.go
volumes_unit_test.go
volumes_unix.go mount: add BindOptions.NonRecursive (API v1.40) 2018-11-06 17:51:58 +09:00
volumes_unix_test.go
volumes_windows.go
wait.go
workdir.go