Skip to content

Commit 44860f7

Browse files
committedJun 13, 2020
Use /. as the directory root to copy from.
Workaround for containers/podman#6596
1 parent 275301b commit 44860f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkg/image/execregistry/registry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (r *Registry) Pull(ctx context.Context, ref image.Reference) error {
4141
// Unpack writes the unpackaged content of an image to a directory.
4242
// If the referenced image does not exist in the registry, an error is returned.
4343
func (r *Registry) Unpack(ctx context.Context, ref image.Reference, dir string) error {
44-
return r.cmd.Unpack(ref.String(), "/", dir)
44+
return r.cmd.Unpack(ref.String(), "/.", dir)
4545
}
4646

4747
// Labels gets the labels for an image reference.

0 commit comments

Comments
 (0)