Install Podman for Cortex XSOAR.
When installing a new server or engine on RHEL 8 or later, the shell installer configures Podman automatically. There are some cases, however, where you might need to install Podman manually:
When using an installation method other than the shell installer (e.g. an RPM package) on RHEL 8 or later.
When the shell installer did not successfully install Podman.
When you want to migrate from Docker to Podman, for an existing Cortex XSOAR server or engine.
Note
This procedure is intended for RHEL 8 or later. It may not work for other operating system types.
Do not use NAS storage for the $HOME directory. The directory needs to be a local directory for Podman to work.
For RHEL 8, install Podman by typing the following commands:
sudo yum -y install slirp4netns fuse-overlayfssudo yum -y module install container-tools
For RHEL 9 or later, install Podman by typing the following command:
sudo yum -y install slirp4netns fuse-overlayfs podman
Run the following commands:
sudo touch /etc/subuid /etc/subgidsudo mkdir -p /home/demistosudo chown demisto:demisto /home/demisto
Configure the
unqualified-search-registriesused by Podman.Podman by default uses the fedoraproject.org, redhat.com, and docker.io unqualified search registries. Since Cortex XSOAR images use only the docker.io registry, you can speed up download times for container images by setting
unqualified-search-registriesto just docker.io.Create or edit the
/home/demisto/.config/containers/registries.confconfig file.In the file, set the following:
unqualified-search-registries = ['docker.io']
Note
If you edit the file with the
rootuser, make sure to set thedemistouser as file owner by runningchown demisto:demisto /home/demisto/.config/containers/registries.confChange the
subuidsandsubgidsby running the following command:sudo usermod --add-subuids 200000-265535 --add-subgids 200000-265535 demistoMigrate existing containers to Podman by typing the following command:
sudo sh -c "cd /; runuser -u demisto -- podman system migrate"Set the
net.ipv4.ping-group-range, by typing the following commands:sudo sh -c "echo 'net.ipv4.ping_group_range=0 2000000' > /etc/sysctl.d/demisto-ping.conf"sudo sysctl -w "net.ipv4.ping_group_range=0 2000000"
As root user, edit one of the following
configfiles:Server:
/etc/demisto.confEngine:
/usr/local/demisto/d1.conf
Change the
"container.engine.type": "docker"to"podman".If this line does not exist, add the following line to the file:
"container.engine.type": "podman""Server": { "HttpsPort": "443", "ProxyMode": true }, "container": { "engine": { "type": "podman" } }, "db": { "index": { "entry": { "disable": trueIf the engine or server is running, restart the service.
Server:
sudo systemctl restart demistoEngine:
sudo systemctl restart d1