Conjur image load with PodMan 3.3.1 on RHEL 8.5 fails
Symptom
When attempting to load the Conjur image in Podman, the `podman load ...` command fails with a message similar to:
"Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 999:998 for /etc/conjur)"
or
"Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:8377 for /etc/container_environment.json)"
Environment
12.4;12.5
Podman 3.3.1 on RHEL 8.5
Cause
This is caused by the current system user having an insufficient number of subuids and subguids assigned to them to map the Conjur container users.
This can be verified by running the command to list the available subids for the current user:
"podman unshare cat /proc/self/uid_map"
Resolution
To resolve this, following the instructions for the correct environment:
- RHEL 7: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/managing_containers/index
- RHEL 8: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_starting-with-containers_building-running-and-managing-containers#proc_setting-up-rootless-containers_assembly_starting-with-containers
In each environment, run the command "podman system migrate" to apply the changes before attempting to load the Conjur image again.
RedHat recommends allocating 65,536 UIDs and GIDs for maximum compatibility. This number may be reduced. However, for Conjur, the minimum required is 10,000.