Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Example: Podman runner

Podman is an open-source container engine, similar to Docker for managing and running containers. Unlike Docker, Podman is daemonless, meaning it runs containers as child processes without the need for a persistent background service. It supports rootless containers for enhanced security and is largely compatible with Docker’s CLI commands. Given this, we can repurpose the DockerRunner for use with Podman.

from niwrap import DockerRunner

runner = DockerRunner(docker_executable="podman")

Full source.

note

By default, Podman runs as the current user (i.e. rootless) - if root is necessary, the user id parameter can also be passed to the runner with docker_user_id=0