diff options
author | Oliver <oliver.thallmair@mailbox.org> | 2021-12-26 15:21:08 +0100 |
---|---|---|
committer | Oliver Thallmair <oliver.thallmair@mailbox.org> | 2021-12-29 00:26:12 +0100 |
commit | a2687783d447183a7ab0c97023b87e9731cc7fe9 (patch) | |
tree | b966e5638c0c8a615e9f4ca9cf0520b50fd39e21 /pkg/api/handlers/compat | |
parent | 73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37 (diff) | |
download | podman-a2687783d447183a7ab0c97023b87e9731cc7fe9.tar.gz podman-a2687783d447183a7ab0c97023b87e9731cc7fe9.tar.bz2 podman-a2687783d447183a7ab0c97023b87e9731cc7fe9.zip |
prefix imageId with sha256: in containers list
test for compat API ImageId
Signed-off-by: Oliver Thallmair <oliver.thallmair@mailbox.org>
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r-- | pkg/api/handlers/compat/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go index 4f101ce84..5a06722ec 100644 --- a/pkg/api/handlers/compat/containers.go +++ b/pkg/api/handlers/compat/containers.go @@ -360,7 +360,7 @@ func LibpodToContainer(l *libpod.Container, sz bool) (*handlers.Container, error ID: l.ID(), Names: []string{fmt.Sprintf("/%s", l.Name())}, Image: imageName, - ImageID: imageID, + ImageID: "sha256:" + imageID, Command: strings.Join(l.Command(), " "), Created: l.CreatedTime().Unix(), Ports: ports, |