Working with Oracle Linux 8, Podman, and Docker Compose

In this blog post I will share how to configure an Oracle Linux 8.9 server and Podman to work with Docker Compose.

Docker Compose is a command-line tool used for defining and the running single, or multi-container applications. 

Docker Compose simplifies the management of the entire application stack, making it easy to manage services, networks, and volumes all from a single, easy to read YAML (Yet-Another-Markup-Language) formatted file.

Install and confirm Podman installed

Install the Podman package if not already installed, using the below.

sudo dnf module install container-tools:ol8

Check the version of Podman using podman -v for example.

podman -v

Confirm the Podman CLI is working ok.

 podman run quay.io/podman/hello

Install the Podman Docker Package

Install the podman docker package to allow Podman to work natively with Docker commands.

sudo dnf install -y podman-docker

Install Docker Compose

Download and install Compose standalone.

sudo curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

Add executable permissions to docker-compose.

sudo chmod +x /usr/local/bin/docker-compose

Confirm docker-compose is working

docker-compose version

Start the Podman Socket

Configure the Podman socket using the below.

sudo systemctl enable --now podman.socket
sudo systemctl status podman.socket

Check that the socket works as expected using curl.

If the Curl returns OK, then the compose functionality is successfully configured to work with docker-compose.yaml files.

In a follow-up post I share how we can use the above to deploy the Unified Observability for Oracle database using docker-compose.

Leave a Reply

Create a website or blog at WordPress.com

Up ↑

Discover more from Ron Ekins' - Oracle Technology, DevOps and Kubernetes Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading