docs/current_docs/reference/container-runtimes/podman.mdx
Dagger can be used with any OCI-compatible container runtime, including Podman.
Ensure that podman is installed and running on your system:
$ podman info
host:
arch: amd64
buildahVersion: 1.41.4
...
:::warning Podman must be configured for rootful container execution. :::
You can install podman using the official instructions.
:::note
Podman Desktop on Mac and RHEL 8.x users may need to additionally execute modprobe iptable_nat.
To access the virtual machine used by Podman Desktop on Mac, use the commands below:
# list podman machines
podman machine list
# log in to machine
podman machine ssh podman-machine-default
# execute command
sudo modprobe iptable_nat
:::
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ dagger core version
v0.18.19
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
27d47c3d5a10 registry.dagger.io/engine:v0.18.19 "dagger-entrypoint.s…" 6 days ago Up 4 hours dagger-engine-v0.18.19
If you have any questions about additional ways to use Podman with Dagger, join our Discord and ask your questions in our help channel.
Podman is a Docker-compatible tool to manage and run OCI containers.