mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
rootless: allow a per-user storage.conf file
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
c17f8f664c
commit
067ae31095
|
@ -57,6 +57,11 @@ func GetDefaultStoreOptions() (storage.StoreOptions, error) {
|
|||
if err != nil {
|
||||
return storageOpts, err
|
||||
}
|
||||
|
||||
storageConf := filepath.Join(os.Getenv("HOME"), ".config/containers/storage.conf")
|
||||
if _, err := os.Stat(storageConf); err == nil {
|
||||
storage.ReloadConfigurationFile(storageConf, &storageOpts)
|
||||
}
|
||||
}
|
||||
return storageOpts, nil
|
||||
}
|
||||
|
|
|
@ -125,6 +125,8 @@ storage.conf is the storage configuration file for all tools using containers/st
|
|||
|
||||
The storage configuration file specifies all of the available container storage options for tools using shared container storage.
|
||||
|
||||
When Podman runs in rootless mode, the file `$HOME/.config/containers/storage.conf` is also loaded.
|
||||
|
||||
**mounts.conf** (`/usr/share/containers/mounts.conf` and optionally `/etc/containers/mounts.conf`)
|
||||
|
||||
The mounts.conf files specify volume mount directories that are automatically mounted inside containers when executing the `podman run` or `podman start` commands. Container processes can then use this content. The volume mount content does not get committed to the final image if you do a `podman commit`.
|
||||
|
|
Loading…
Reference in a new issue