buildah can't build image in rootless environment when specifying userns-uid-map/userns-gid-map and get error "there might not be enough IDs available in the namespace"

Solution In Progress - Updated -

Issue

  • Failed to build container image in rootless environment with specifying userns-uid-map/userns-gid-map
  • buildah outputs "there might not be enough IDs available in the namespace" even though specifying these options with its own user/group ID range

Environment

  • Red Hat Enterprise Linux 8
  • buildah-1.19.7-1.module+el8.4.0+10607+f4da7515 or later

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