Podman
Dagger can be used with any OCI-compatible container runtime, including Podman.
How it works
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
.
Prerequisites
- Podman installed and running on the host system.
- Podman machine configured for rootful container execution.
Example
To use Podman with Dagger, create a symbolic link as below:
sudo ln -s $(which podman) /usr/local/bin/docker
note
RHEL 8.x users may need to additionally execute modprobe iptable_nat
.
Resources
If you have any questions about additional ways to use Podman with Dagger, join our Discord and ask your questions in our help channel.
About Podman
Podman is a Docker-compatible tool to manage and run OCI containers.