mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
libpod: volume copyup honors namespace mappings
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user