
Use podman with Docker Compose v2 Plugin instead of the podman-compose tool
Current docker-compose CLI plugin is installed in:
~/.docker/cli-plugins/
You can install different versions of docker-compose from the Compose GitHub release page into a custom directory using:
mkdir -p ~/custom-compose
wget https://github.com/docker/compose/releases/download/<COMPOSE_VERSION>/docker-compose-linux-x86_64 \
-O ~/custom-compose/docker-compose
chmod +x custom-compose/docker-compose
podman using environment variableuse the PODMAN_COMPOSE_PROVIDER environment variable
PODMAN_COMPOSE_PROVIDER=~/custom-compose/docker-compose podman-compose version
podman using configuration fileedit the [engine] section in ~/.config/containers/container.conf:
[engine]
compose_providers = ["~/custom-compose/docker-compose"]