From 677494937543eec2e4c808cc055348063879b347 Mon Sep 17 00:00:00 2001 From: Kieren Davies Date: Tue, 21 Mar 2023 13:25:00 +0100 Subject: [PATCH] Use lowercase "id" in stats API, for Docker compatibility Fixes #17869 [NO NEW TESTS NEEDED] Signed-off-by: Kieren Davies --- pkg/api/handlers/compat/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/handlers/compat/types.go b/pkg/api/handlers/compat/types.go index 6d47ede649..b8d06760f6 100644 --- a/pkg/api/handlers/compat/types.go +++ b/pkg/api/handlers/compat/types.go @@ -48,7 +48,7 @@ type StatsJSON struct { Stats Name string `json:"name,omitempty"` - ID string `json:"Id,omitempty"` + ID string `json:"id,omitempty"` // Networks request version >=1.21 Networks map[string]docker.NetworkStats `json:"networks,omitempty"`