summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-20 12:34:44 -0400
committerGitHub <noreply@github.com>2021-09-20 12:34:44 -0400
commit4cdffd07142c4362e9c2efdb841b286d6cd4f2b8 (patch)
treeb7bce94a3aff0c5c55698c258b83f01ce6780a65 /pkg/api
parent8ccaebb853a53877a5ac446af5bb5892019565ce (diff)
parent5242030ac275e497b6b91186bb6305b5cb40c96a (diff)
downloadpodman-4cdffd07142c4362e9c2efdb841b286d6cd4f2b8.tar.gz
podman-4cdffd07142c4362e9c2efdb841b286d6cd4f2b8.tar.bz2
podman-4cdffd07142c4362e9c2efdb841b286d6cd4f2b8.zip
Merge pull request #11656 from Luap99/compat-id
compat API: /images/json prefix image id with sha256
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go
index b82c586ea..fedab3bb3 100644
--- a/pkg/api/handlers/types.go
+++ b/pkg/api/handlers/types.go
@@ -183,7 +183,8 @@ func ImageToImageSummary(l *libimage.Image) (*entities.ImageSummary, error) {
}
is := entities.ImageSummary{
- ID: l.ID(),
+ // docker adds sha256: in front of the ID
+ ID: "sha256:" + l.ID(),
ParentId: imageData.Parent,
RepoTags: imageData.RepoTags,
RepoDigests: imageData.RepoDigests,