# 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](https://help.hyperscience.ai/deployment/docs/configuring-podman-in-rhel-8#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:

1. To save space that is consumed by Docker images, clear the Docker containers.
2. Upgrade your Hyperscience application to v33.1.0 or later by following the steps outlined in our [Upgrading to v33](https://help.hyperscience.ai/deployment/docs/upgrading-to-v33) article.
3. Check the application’s health status.
4. 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](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/upgrading_from_rhel_7_to_rhel_8/index) article.

## Configuring Podman

To configure Podman, follow the steps below:

1. Install the _container-tools_ module using the following command:

```bash
    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.
