Support daemonless Podman #11345
mikaelstaldal
started this conversation in
Ideas
Replies: 1 comment
-
|
I've done the tests in https://github.com/linghengqian/windows-env-testcontainers-test, specifically at https://github.com/linghengqian/windows-env-testcontainers-test/actions/runs/16898523180/job/47873102978, and it even ran the Rooteless Podman CI. Why do you think it's not supported? name: Podman Test CI
on:
push:
branches: [ master ]
workflow_dispatch:
concurrency:
group: podman-test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: 'windows-2025'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup Podman CLI For Windows
run: |
winget install --id jazzdelightsme.WingetPathUpdater --source winget
winget install RedHat.Podman --source winget
podman machine init
podman machine start
"DOCKER_HOST=npipe:////./pipe/podman-machine-default" >> $env:GITHUB_ENV
"TESTCONTAINERS_RYUK_DISABLED=true" >> $env:GITHUB_ENV
"PATH=$env:PATH" >> $env:GITHUB_ENV
- name: Test Docker CLI on Windows Server
run: |
docker context ls
podman run docker.io/library/hello-world:linux
docker run hello-world:linux
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '21'
cache: 'maven'
- name: Run test with JDK
run: ./mvnw clean test |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Podman runs daemonless by default, with the
podmancommand capable of managing containers directly.It would be nice if Testcontainers could support this, which means to run the
podmancommand instead of talking to a daemon. Running without a daemon has security advantages since a Docker/podman daemon allows privilege escalation. Even if you can run the daemon rootless, it is still able to do everything its user can do, making more fine grained sandboxing technologies like AppArmor and BubbleWrap ineffective.Beta Was this translation helpful? Give feedback.
All reactions