From 688cc0aee3f031661b930811b2d95df1d6c601ac Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 24 Jun 2020 14:12:53 +0200 Subject: libpod: volume copyup honors namespace mappings Signed-off-by: Giuseppe Scrivano --- libpod/container_internal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpod/container_internal.go b/libpod/container_internal.go index db64f5eeb..2ae894139 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1854,8 +1854,8 @@ func (c *Container) unmount(force bool) error { // this should be from chrootarchive. // Container MUST be mounted before calling. func (c *Container) copyWithTarFromImage(source, dest string) error { - a := archive.NewDefaultArchiver() - + mappings := idtools.NewIDMappingsFromMaps(c.config.IDMappings.UIDMap, c.config.IDMappings.GIDMap) + a := archive.NewArchiver(mappings) if err := c.copyOwnerAndPerms(source, dest); err != nil { return err } -- cgit v1.2.3-54-g00ecf