Search code examples
traefikpodman

Podman - rootless traefik should find other rootless containers spawned by other users


I am working my way into Podman and have a question about whether the theoretical construct is possible.

Target Rootless started traefik should find other rootless containers started with different users.

I've already searched the internet for a few hours, but haven't found an answer/approach.

Attachment There are 3 users: system stack and overflow. system starts traefik container rootless stack starts nginx container rootless overflow starts wordpress container rootless

Challenge What are the options for traefik to find the containers (nginx and wordpress)?


Solution

  • Rootless podman has zero visibility of other podman users. That's why we run it in rootless mode -- to provide isolation that's not available when running as root. You're not going to be able to perform automatic discovery services when spreading your execution across three different users.

    If you want to use Traefik and automatic service discovery, you'll need to run all your containers under the same user.