Skip to content

Instantly share code, notes, and snippets.

@webgtx
Last active August 9, 2023 23:47
Show Gist options
  • Save webgtx/2599da900109e5f0c8722485c3893f2b to your computer and use it in GitHub Desktop.
Save webgtx/2599da900109e5f0c8722485c3893f2b to your computer and use it in GitHub Desktop.
How to run portainer agent with podman

use Portainer with Podman:

Podman root context

First make sure to enable the Podman socket:

systemctl enable --now podman.socket

Run the Portainer agent in a Podman root environment:

podman run -d --privileged \
  -p 9001:9001 \
  --name portainer_agent \
  --restart=always \
  -v /run/podman/podman.sock:/var/run/docker.sock:Z \
  -v /var/lib/containers/storage/volumes:/var/lib/docker/volumes \
  portainer/agent:2.18.4

credits: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment