Image inspect API (images/{name}/json) returns null RepoDigests #45556
Labels
area/api
area/images
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
version/24.0
Description
Image inspect API (images/{name}/json) returns null
RepoDigests
#45068 changed the behavior of
RepoDigests
, but is thenull object
expected?Reproduce
curl --unix-socket /var/run/docker.sock "http://localhost/images/25cd1848987f/json" | json_pp
Result from Docker 3.0.6 (API v1.42)
Result from Docker 4.0.0 (API v1.43)
Expected behavior
At least from API v1.42 document https://docs.docker.com/engine/api/v1.42/#tag/Image/operation/ImageCreate
The format of the
RepoDigests
should bethe array of the string
.docker version
Client: Docker Engine - Community Version: 24.0.0 API version: 1.43 Go version: go1.20.4 Git commit: 98fdcd7 Built: Mon May 15 18:48:35 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.0 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 1331b8c Built: Mon May 15 18:48:35 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.19 GitCommit: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: