Search code examples
podman

Podman play kube working with sudo but not without


I am currently running the default podman 3.4.4 on a Ubuntu 22.04.2 (amd) server.

At first I ran the snippet you can find here (non-sudo) and it worked perfectly fine. I generated the kube file from it and tweaked it to use env variables instead. Now basically the same definition won't work with podman play kube. Running sudo podman play kube, it works perfectly fine but without sudo, I get the following error message:

Error: k8s.gcr.io/pause:3.5: image not known

This is the same for all of my pod definitions, not only Traefik. Not even the standard hello-world works, so also not a problem with ports.

Cheers, Moe


Solution

  • For me it was fixed after recreating my user account. At first I created it with useradd and the second time with adduser. As for why, I also still have no idea.