Minimal podman-py code that starts a container
#!/usr/bin/env python3 import json from podman import PodmanClient with PodmanClient(base_url="unix:///run/podman/podman.sock") as client: #image = client.images.pull('nginx') mounts = [ {"type": "bind", "source":"/home/opc", "target": "/home/opc", "read_only": False}] client.containers.run('nginx', name="nginx", detach=True, privileged=True, mounts=mounts)