Skip to content

Commit

Permalink
Use /. as the directoyr root to copy from.
Browse files Browse the repository at this point in the history
Workaround for containers/podman#6596
  • Loading branch information
Jamstah committed Jun 13, 2020
1 parent 275301b commit 2d0b345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/image/execregistry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2d0b345

Please sign in to comment.