From f5b368400c1b7a1b1bdbb90f6a0d9fcbbd6802d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 24 Jun 2020 14:12:53 +0200 Subject: [PATCH] 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 934fe220fd..e86512569a 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 }