Preparing Container Runtime Environment
Setting up the correct container runtime environment is essential for running containerized applications efficiently. This guide provides detailed instructions for preparing a container runtime environment on RHEL 8 and RHEL 9, including prerequisites, installation steps, considerations, and troubleshooting tips.
Container Runtime Requirements
- New installations:
- Podman is the default container runtime for RHEL 8 and RHEL 9. However, before proceeding with the BigFix MCM and BigFix Mobile installation, verify that Podman is installed and running.
- On RHEL 8, using Podman Compose requires additional setup, as the
default Python version does not include support for certain necessary
libraries.Note: Recommendation: If you're starting fresh or looking for minimal setup, choose RHEL 9 for seamless Podman Compose support.
- Upgrade: Before upgrading, remove Docker and install Podman. For instructions, refer to Migrating from Docker to Podman
Setting up Podman
- Check Podman Version
Podman is included by default in RHEL 8 and RHEL 9. Check Podman version using the following command.
It displays the installed version of Podman and ensures Podman is installed and available on the system. If it is not available, install it manually.podman --versionsudo dnf install -y podman - Check Python Version and install the required version If
Necessary
python3 --version-
Displays the installed version of Python 3.
-
If Python 3.9+ is installed, proceed to step #3.
-
If installed Python version is older than 3.9, complete the following steps:
- Install Python
3.9
This installs Python 3.9 alongside the existing system version.dnf install python39 - Check Current Python 3
Version
Output will likely show: Python 3.6.x (or whatever version was previously set as default).python3 --version - Configure the Default Python
Version
To change the default version to 3.9, when prompted, select Python 3.9 by using "+" and "Enter".alternatives --config python3 - Verify the
Change
Now, the python version will be changed to v3.9python3 --version
- Install Python
3.9
-
- Install pip (Python Package
Manager)
sudo dnf install -y python3-pip- Installs
pip3, the package manager for Python, using dnf (the package manager for RHEL-based systems). - The
-yflag automatically confirms the installation.
- Installs
- Verify pip
Installation
Displays the installed version ofpip3 --versionpip3, ensuring it's installed and functional. - Install Podman Compose using
pip
Installs Podman Compose, allowing users to manage multiple Podman containers using apip3 install podman-composedocker-compose.ymlfile. - Verify Podman Compose
Installation
Checks ifls /usr/local/bin/podman-composepodman-composeis present in/usr/local/bin/, which is a common location for executables installed via pip. - Create a Symlink for
Podman
Ensuresln -s /usr/bin/podman /usr/local/bin/podmanpodmanis accessible in/usr/local/bin/by linking it to/usr/bin/podman. - Create a Symlink for Podman
Compose
Creates a symbolic link (ln -s /usr/local/bin/podman-compose /usr/bin/podman-composeln -s) so thatpodman-composecan be executed from/usr/bin/, making it accessible system-wide. - Verify Podman Compose
Again
Confirms thatpodman-compose --versionpodman-composeis correctly installed and available after the symlink. - Verify if Podman is installed and
executable
podman ps podman images - Install MDM server
- Verify if Podman containers are running as
expected
Similar topodman psdocker ps, it displays all currently running Podman containers. - Verify if Podman images are
downloaded
podman imagesShows all locally available container images, including their repository names, tags, and sizes.
Troubleshooting
Podman Issues
- Podman command not
recognized:
If missing, ensure Podman is installed:podman --versionsudo dnf install -y podman - Podman unable to pull
images:
Check network connectivity and repository access.podman pull registry.fedoraproject.org/fedora:latest
Frequently Asked Questions (FAQ)
- Q1: Can I run Docker and Podman together?
- A: No. It may lead to conflicts due to differences in how they manage containers, images, and storage.
- Q2: How can I migrate from Docker to Podman?
- A: Uninstall Docker, install and set up Podman, and upgrade MCM to the latest version through WebUI.
Next Steps
Once all prerequisites are met along with setting up Podman, follow the installation instructions Installing MDM services to complete the setup.