2 Installing Podman and Related Utilities
The following instructions describe how to install Podman and related tools on an Oracle Linux host. Instructions for removing these tools are also provided.
Podman and its related utilities, Buildah, and Skopeo, are designed to work independently of
each other. For example, Buildah has no dependency on Podman, which means it's possible to
separate the container build infrastructure from environments in which the containers are
intended to run. You can install the buildah
package on the same system that
you run Podman; or, you can install the package on another system, if required. Similarly, you
can install Skopeo separate from the other utilities according to specific requirements.
To use Podman, you must have the latest RHCK or UEK version installed.
Podman and related tools are available for Oracle Linux 8 and Oracle Linux 9 on ULN and the Oracle Linux yum server.
To install Podman and related tools, use the following command that matches the system's Oracle Linux OS:
-
Oracle Linux 8
sudo dnf module install container-tools:ol8
-
Oracle Linux 9
sudo dnf install container-tools
Note:
To simplify the user experience, application streams for Oracle Linux 9 are no longer released in modular format. For more information, see Oracle Linux: Managing Software on Oracle Linux.
Verifying Podman
Use the podman info
command to display information about the configuration
and version of Podman.
podman info
For more information, see the podman(1)
manual
page.
You can optionally install the podman-docker
package that effectively
aliases the docker
command to podman
. The installed package
can help in environments where users are more familiar with Docker or where automation expects
the docker
command to be present.
To install the podman-docker
package:
sudo dnf install podman-docker
To remove Podman, stop any running Podman containers and related systemd
services. For more information, see Managing Containers.
When all containers have been halted or suspended, you can remove the
podman
package.
sudo dnf remove podman