mirror of
https://github.com/containers/podman.git
synced 2025-06-17 23:20:59 +08:00
fix: docker APIv2 images/get
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
@ -466,7 +466,7 @@ func ExportImages(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
imageEngine := abi.ImageEngine{Libpod: runtime}
|
||||
|
||||
saveOptions := entities.ImageSaveOptions{Output: tmpfile.Name()}
|
||||
saveOptions := entities.ImageSaveOptions{Format: "docker-archive", Output: tmpfile.Name()}
|
||||
if err := imageEngine.Save(r.Context(), images[0], images[1:], saveOptions); err != nil {
|
||||
utils.InternalServerError(w, err)
|
||||
return
|
||||
|
@ -151,5 +151,6 @@ t DELETE libpod/images/test1:latest 200
|
||||
# actual: {"cause":"no such image","message":"unable to find a name and tag match for busybox in repotags: no such image","response":500}
|
||||
#
|
||||
#t GET images/get?names=alpine,busybox 200 '[POSIX tar archive]'
|
||||
t GET "images/get?names=alpine" 200 '[POSIX tar archive]'
|
||||
|
||||
# vim: filetype=sh
|
||||
|
Reference in New Issue
Block a user