From 2d0b345ffb93fc7f87e8def617147426b35e02c9 Mon Sep 17 00:00:00 2001 From: James Hewitt Date: Sat, 13 Jun 2020 14:35:16 +0100 Subject: [PATCH] Use /. as the directoyr root to copy from. Workaround for https://github.com/containers/libpod/issues/6596 --- pkg/image/execregistry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/image/execregistry/registry.go b/pkg/image/execregistry/registry.go index 9d8468f14a..f94a63b02e 100644 --- a/pkg/image/execregistry/registry.go +++ b/pkg/image/execregistry/registry.go @@ -41,7 +41,7 @@ func (r *Registry) Pull(ctx context.Context, ref image.Reference) error { // Unpack writes the unpackaged content of an image to a directory. // If the referenced image does not exist in the registry, an error is returned. func (r *Registry) Unpack(ctx context.Context, ref image.Reference, dir string) error { - return r.cmd.Unpack(ref.String(), "/", dir) + return r.cmd.Unpack(ref.String(), "/.", dir) } // Labels gets the labels for an image reference.