Podman + traefik

I want to move from docker to podman, but I am having trouble migrating images that rely on the docker.sock to podman’s varlink.

After enabling varlink, I am swapping out the docker.sock with podman.io path, but no luck.

Here is podman man page:
https://www.mankier.com/1/podman-varlink

Here is the traefik documentation:
https://hub.docker.com/_/traefik

Here is the original run command:

docker run -d -p 8080:8080 -p 80:80
-v $PWD/traefik.yml:/etc/traefik/traefik.yml
-v /var/run/docker.sock:/var/run/docker.sock
traefik:v2.0

What is the correct method to replace the docker.sock host path with the podman’s API? Or am I going about this the wrong way?

At the end of the day I want to run jwilder or traefik on podman. Help appreciated!

There is no Docker socket equivalent in Podman because there is no daemon to connect to. It doesn’t seem like it’s really required for Traefik though; it’s only used for automatic container discovery. But if you do need that, then you could follow this issue:

1 Like

You can use the file-provider instead of the Docker-provider. This means doing the configuration in an old-fashioned config file and is less flexible but perfectly doable for a small/static setup: File - Traefik