Why is \ not a shared mount for rootless containers?

Solution Verified - Updated -

Issue

  1. Podman build fails because / is a PRIVATE mount.
  2. The mount Propagation inside the POD is PRIVATE.
  3. The issue seen while building images with podman :
Error: error building at STEP "RUN mkdir -p /usr/share/jenkins/ref/init.groovy.d": error resolving mountpoints for container "abcd": chown /home/jenkins/.local/share/containers/storage/vfs-containers/abcd/userdata/buildah-volumes/efgh: operation not permitted

Environment

  1. Red Hat Enterprise Linux 8.6
  2. Build images in OSE4.10 using 4.10

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