mirror of
https://github.com/containers/podman.git
synced 2025-08-02 09:12:36 +08:00
Merge pull request #3137 from giuseppe/unshare-fixes
unshare: some cleanups and define CONTAINERS_{RUNROOT,GRAPHROOT}
This commit is contained in:
@ -19,6 +19,11 @@ manually clearing storage and other data related to images and containers.
|
||||
It is also useful if you want to use the `podman mount` command. If an unprivileged users wants to mount and work with a container, then they need to execute
|
||||
podman unshare. Executing `podman mount` fails for unprivileged users unless the user is running inside a `podman unshare` session.
|
||||
|
||||
The unshare session defines two environment variables:
|
||||
|
||||
**CONTAINERS_GRAPHROOT** the path to the persistent containers data.
|
||||
**CONTAINERS_RUNROOT** the path to the volatile containers data.
|
||||
|
||||
## EXAMPLE
|
||||
|
||||
```
|
||||
@ -34,4 +39,4 @@ $ podman unshare cat /proc/self/uid_map /proc/self/gid_map
|
||||
|
||||
|
||||
## SEE ALSO
|
||||
podman(1), podman-mount(1), namespaces(7), newuidmap(1), newgidmap(1), user\_namespaces(7)
|
||||
podman(1), podman-mount(1), namespaces(7), newuidmap(1), newgidmap(1), user\_namespaces(7)
|
||||
|
Reference in New Issue
Block a user