mirror of
https://github.com/containers/podman.git
synced 2025-12-09 23:27:09 +08:00
podman: use a different store for the rootless case
so that the user has rw access to it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #871 Approved by: mheon
This commit is contained in:
committed by
Atomic Bot
parent
a1ec6747f1
commit
4086a0f737
@@ -9,7 +9,6 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/containers/storage"
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/docker/pkg/signal"
|
||||
"github.com/docker/go-connections/nat"
|
||||
@@ -81,7 +80,10 @@ func createCmd(c *cli.Context) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
storageOpts := storage.DefaultStoreOptions
|
||||
storageOpts, err := libpodruntime.GetDefaultStoreOptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
storageOpts.UIDMap = mappings.UIDMap
|
||||
storageOpts.GIDMap = mappings.GIDMap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user