groupadd command fails with "/etc/group.NN: lock file already used" and "groupadd: cannot lock /etc/group; try again later." errors in a podman rootless container.
Issue
- groupadd in the container fails with "groupadd: /etc/group.NN: lock file already used" and "groupadd: cannot lock /etc/group; try again later." erorr.
- podman build fails with "Error: error building at STEP "RUN groupadd -g 2000 test": error while running runtime: exit status NN" error.
Environment
- Red Hat Enterprise Linux 8
- podman
- podman rootless container
- kernel-4.18.0-147.el8.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.