Change the Container storage
Configure Podman container storage for an engine.
By default, Podman uses the $HOME/.local/share/containers/storage directory. To use a different directory for container storage, edit the Podman config file located at /home/demisto/.config/containers/storage.conf. If the Podman config file does not exist, you need to create it and change the ownership.
The new storage directory needs to be owned by the demisto user, otherwise, they will be denied access to it.
Do not use NAS storage or a temporary (tmpfs) directory for the graphroot setting. The graphroot needs to be a local, non-temporary directory for Podman to work. For more information, see https://en.wikipedia.org/wiki/Network-attached_storage.
If the Podman config file does not exist:
Create the Podman config file.
sudo mkdir -p /home/demisto/.config/containerscp /etc/containers/storage.conf /home/demisto/.config/containersChange the ownership of the Podman config file.
sudo chown -R demisto:demisto /home/demisto
To set a different directory for container storage, change the key:
graphrootin thestorage.conffile. For example:graphroot = "/var/lib/containers/cortex-storage"Some additional changes are required in the storage.conf file. Comment out the
runrootsetting by adding a#(hash) before it. For example:#runroot = "/run/containers/storage"Under [storage.options.overlay], uncomment the following line (remove the # from the start):
mount_program = "/usr/bin/fuse-overlayfs"If the engine has already been installed, apply your changes to any existing containers:
sudo -u demisto podman system migrateVerify the change (once the engine is installed):
sudo -u demisto podman info | grep graph
Last updated
Was this helpful?
