How to move the Podman Volume Storage location

During the installation of a vFunction Server on a Linux VM using Podman, vFunction creates two Volumes. These Volumes are created in:

  • If installing as the Root User: /var/lib/containers/storage
  • If installing as a Rootless User: $HOME/.local/share/containers/storage

To change the location where these Volumes are being stored, take the following steps:

  1. Open the storage.conf. Note that there may be multiple storage.conf files on the VM that override one another in the following precedence:
  • /usr/containers/storage.conf
  • /etc/containers/storage.conf
  • $HOME/.config/containers/storage.conf
  1. Modify the Container Storage Path in the relevant storage.conf
  • If installing as the Root User, modify the Value in this line: graphroot = “/var/lib/containers/storage”
  • If installing as a Rootless User, uncomment and modify the Value in this line: # rootless_storage_path = “$HOME/.local/share/containers/storage”
  • If you needed to create a new file, add the entry as:
[storage]
rootless_storage_pass = "/path/to/desired/location"
driver = "overlay"
  1. Run the vFunction Server Podman Installation Script