When trying to test containers with userns=auto
you’ll most likely receive the “not enough unused IDs in user namespace” error. This is expected as it’s caused by rootless distrobox containers using --userns=keep-id
.
There are two ways to “work around” this:
- Delete all distrobox containers per podman’s troubleshooting (43), test the container, and then restore/rebuild distrobox containers with
ujust distrobox-assemble
- Create and use a virtual machine for testing the containers.