GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add Podman compatibility (parity with testcontainers-go and testcontainers-java) · Issue #1027 · testcontainers/testcontainers-python

feat: add Podman compatibility (parity with testcontainers-go and testcontainers-java) #1027

New issue
Copy link
New issue
Copy link
Closed
Enhancement
#1028
Closed
feat: add Podman compatibility (parity with testcontainers-go and testcontainers-java)#1027
Enhancement
#1028
Copy link
Assignees
Tranquility2
Labels
🚀 enhancement

Description

@Tranquility2
Tranquility2
opened on May 30, 2026
Issue body actions

Problem

Testcontainers for Python currently assumes the configured container runtime is Docker. Running tests against a Podman daemon works partially but breaks in a few places:

  1. DockerCompose shells out to docker compose, which fails on a pure-Podman host without the podman-docker shim package installed.
  2. bind_ports parsing trips over Podman's protocol-suffixed published port format (e.g. "8080/tcp" vs Docker's "8080").
  3. Host port ranges in compose files (published: "5000-5999") silently break tests because Podman doesn't support them.
  4. There is no way to programmatically tell whether the connected daemon is Podman, so adaptive behavior is impossible.

Other Testcontainers implementations already ship first-class Podman support:

  • testcontainers-go — Using Podman (auto-detection via socket, ProviderPodman for explicit network handling).
  • testcontainers-java — Supported Docker environments § Podman (documented DOCKER_HOST setup, rootless/rootful guidance).

Proposal

Bring Testcontainers for Python to feature parity with go/java for Podman: detect the runtime at the daemon level, transparently adapt the few code paths that differ (compose binary, port-binding parsing), keep the existing Docker behavior unchanged when Docker is in use, and document the supported setup alongside Docker.

Note: A PR implementing this will be opened shortly.

Activity

  1. Tranquility2
    added
    🚀 enhancement
    on May 30, 2026
  2. Tranquility2
    self-assigned this
    on May 30, 2026
  3. Tranquility2
    added the
    Enhancement
    issue type on May 30, 2026
  4. alexanderankin
    closed this as completedin #1028on Jun 3, 2026
  5. alexanderankin
    added a commit that references this issue on Jun 3, 2026

    feat(core): add Podman compatibility (#1028)

    This issue will close once commit 37093ab is merged into the 'main' branch.
    37093ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Tranquility2
    Tranquility2

Labels

🚀 enhancement

Type

Enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.