How do I share podman containers or container images on a single system between rootless users?

Solution Verified - Updated -

Issue

  • When using podman on Red Hat Enterprise Linux systems, rootless users (non-root users, or users other than root) are using podman for containerization.
    • Each user is currently running podman separately, but this prevents other users from being able to use and share containers and container images that belong to other users.
    • Users could use sudo to use podman as root on the host, but this is incredibly insecure and should be avoided.
  • What options are available for limiting the duplication of containers and container images using podman on Red Hat Enterprise Linux across podman, buildah, or skopeo?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux for Edge
  • Red Hat OpenShift Container Platform 4
  • podman container engine with supported container runtimes (crun, runc or others)
  • buildah and/or skopeo similarly share container storage in the same manner as podman and subsequently they are also affected.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content