Jump to content

podman rootless fails with "newuidmap": executable file not found in $PATH


Recommended Posts

Using release Armbian_23.5.1_Rpi4b_jammy_current_6.1.29 on a Raspberry Pi 4b. From a clean install:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install podman
$ podman run --rm docker.io/library/hello-world
Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH


Podman runs fine with sudo, so for now I can use that as a workaround, but it would be nice to run rootless containers for dev environments.

There is a related issue on the official podman repo, but the solutions there don't seem to apply to armbian. https://github.com/containers/podman/issues/9271

Link to comment
Share on other sites

Thank you Igor, that worked! The complete fix was as simple as:


sudo rm -rf ~/.local/share/containers
sudo apt install podman uidmap slirp4netns


and now I can run rootless containers with podman!

Link to comment
Share on other sites

46 minutes ago, klay said:

and now I can run rootless containers with podman!

Great! I think uidmap package can probably be added to the default package base. Contribution should be trivial:
https://github.com/armbian/build/tree/main/config/cli (need to be checked if exists everywhere - probably it does)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines