Skip to content

Commit

Permalink
Use lowercase "id" in stats API, for Docker compatibility
Browse files Browse the repository at this point in the history
Fixes containers#17869

[NO NEW TESTS NEEDED]

Signed-off-by: Kieren Davies <[email protected]>
  • Loading branch information
kierendavies committed Mar 21, 2023
1 parent 74c5a01 commit 6774949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 6774949

Please sign in to comment.