• 25 Posts
  • 58 Comments
Joined 1 year ago
cake
Cake day: March 20th, 2024

help-circle
  • I don’t run MicroOS myself so take this with a grain of salt. But this is usually how I do it, though there might be a better practice out there for this too.

    Afaik, MicroOS by the sound of it, only ships with root by default, but rootless Podman should definitely be possible.

    Normally, you need to set up user namespace mappings for your non-root user. Run these commands as root:

    usermod --add-subuids 100000-165535 <yourusername>
    usermod --add-subgids 100000-165535 <yourusername>
    

    Then check they’re set up with:

    grep <yourusername> /etc/subuid
    grep <yourusername> /etc/subgid
    

    This should give your regular user the ability to map container UIDs without needing root privileges. After that, Podman should work fine as your regular user.

    Hope this helps a little 👍