diff --git a/api/server/router/system/system_routes.go b/api/server/router/system/system_routes.go index 365095159a..db43ea7542 100644 --- a/api/server/router/system/system_routes.go +++ b/api/server/router/system/system_routes.go @@ -52,6 +52,8 @@ func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *ht info.Swarm = s.cluster.Info() } + info.Builder = build.BuilderVersion(*s.features) + if versions.LessThan(httputils.VersionFromContext(ctx), "1.25") { // TODO: handle this conversion in engine-api type oldInfo struct { diff --git a/api/types/types.go b/api/types/types.go index 2accda9d07..dabcd46056 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -146,6 +146,7 @@ type Commit struct { // GET "/info" type Info struct { ID string + Builder BuilderVersion Containers int ContainersRunning int ContainersPaused int diff --git a/integration/system/info_test.go b/integration/system/info_test.go index 8130361988..69ae500894 100644 --- a/integration/system/info_test.go +++ b/integration/system/info_test.go @@ -35,7 +35,8 @@ func TestInfoAPI(t *testing.T) { "KernelVersion", "Driver", "ServerVersion", - "SecurityOptions"} + "SecurityOptions", + "Builder"} out := fmt.Sprintf("%+v", info) for _, linePrefix := range stringsToCheck {