Back to Dagger

Podman

docs/versioned_docs/version-0.18.19/reference/container-runtimes/podman.mdx

0.21.51.4 KB
Original Source

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

Example

To use Podman with Dagger, create a symbolic link as below:

shell
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:

shell
# list podman machines
podman machine list

# log in to machine
podman machine ssh podman-machine-default

# execute command
sudo 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.