Configuring Podman in RHEL 8
Configuring Podman in RHEL 8
In v33.1.0 and later, Hyperscience gives you the possibility to deploy the application on RHEL 8.4 or later. RHEL 8.4 and later uses Podman instead of Docker. The sections below describe how you can configure Podman.
Prerequisites
Before you start configuring RHEL 8, you need to meet the following requirements, depending on whether you are installing or upgrading the Hyperscience application.
Installing the Hyperscience application on a new RHEL 8.4+ instance
If you are already running RHEL 8.4 or later, and you are installing Hyperscience for the first time, you may proceed directly to the steps outlined in Configuring Podman.
Upgrading from RHEL 7 to RHEL 8.4+ when Hyperscience is already installed
Before you start configuring RHEL 8, you need to upgrade Hyperscience to a RHEL-8-compatible version (v33.1.0 or later) by following these steps:
- To save space that is consumed by Docker images, clear the Docker containers.
- Upgrade your Hyperscience application to v33.1.0 or later by following the steps outlined in our Upgrading to v33 article.
- Check the application’s health status.
- Upgrade from RHEL 7.x to RHEL 8.4 or later by following the steps outlined in Red Hat’s Upgrading From RHEL 7 to RHEL 8 article.
Configuring Podman
To configure Podman, follow the steps below:
- Install the container-tools module using the following command:
yum module install -y container-tools
```
2. Install the _podman-docker_ package using the following command:
```bash
yum install -y podman-docker
```
The _podman-docker_ package replaces the Docker command-line interface and _docker-api_ with the matching Podman commands. Every time you run a Docker command, the system will actually run a Podman command.
3. Enable Podman API using the following commands:
```bash
yum install podman-remote
systemctl enable --now podman.socket
```
4. Enable the Podman restart service using the following command:
```bash
systemctl enable --now podman-restart.service
```
Enabling this option allows Podman to restart the Hyperscience application automatically upon OS restart.
5. Give _sudo_ access, as it is a requirement for installations, upgrades, and running the _run.sh_ command on RHEL 8.
6. If you are upgrading the Hyperscience application, you also need to recreate the database container.