summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/storage.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/libpod/storage.go b/libpod/storage.go
index d135285f6..967e9889d 100644
--- a/libpod/storage.go
+++ b/libpod/storage.go
@@ -102,7 +102,13 @@ func (r *storageService) CreateContainerStorage(systemContext *types.SystemConte
// Build the container.
names := []string{containerName}
- container, err := r.store.CreateContainer(containerID, names, img.ID, "", string(mdata), nil)
+ options := storage.ContainerOptions{
+ IDMappingOptions: storage.IDMappingOptions{
+ HostUIDMapping: true,
+ HostGIDMapping: true,
+ },
+ }
+ container, err := r.store.CreateContainer(containerID, names, img.ID, "", string(mdata), &options)
if err != nil {
logrus.Debugf("failed to create container %s(%s): %v", metadata.ContainerName, containerID, err)