4

When I run rootless containers as a non-root user, I can see them with podman ps -a as that user.

However, I don't see those containers when I login as root to the system and run podman ps -a.

Is there a way for the root user to view all containers that are running, no matter which user has started them?

Note: I have tried setting the --root option to Podman, without success

# podman --root ~username/.local/share/containers/storage ps -a
Error: error creating libpod runtime: database libpod temporary files directory (tmpdir) "/run/user/1000/libpod/tmp" does not match our libpod temporary files directory (tmpdir) "/var/run/libpod": database configuration mismatch
Wahyu Kristianto
  • 8,719
  • 6
  • 43
  • 68
mnorthup
  • 41
  • 2
  • 1
    If you're `root`, you could run `sudo -u username podman ps -a`. – larsks Jul 23 '21 at 21:18
  • This is the best option so far, thank you. Any idea if it's possible for 'root' to view all running containers on the system, regardless of who started them? – mnorthup Jul 23 '21 at 22:01
  • I noticed it works better with `sudo -i -u username podman ps -a` as I received a permission denied when I ran it the other way (from /root home directory) – mnorthup Jul 23 '21 at 22:14

0 Answers0