docs/versioned_docs/version-0.18.19/reference/container-runtimes/podman.mdx
Dagger can be used with any OCI-compatible container runtime, including Podman.
By default, Dagger tries to invoke the docker executable. Since Podman is CLI-compatible with Docker, it can be used as a drop-in replacement. This is as simple as creating a symbolic link to the Podman executable in your system path and naming it docker.
To use Podman with Dagger, create a symbolic link as below:
sudo ln -s $(which podman) /usr/local/bin/docker
:::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
:::
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.