Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Confused by podman(rootless)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
nurali
Apprentice
Apprentice
User avatar
Posts: 201
Joined: Thu Nov 17, 2022 3:24 pm
Location: Somewhere,Earth

Confused by podman(rootless)

  • Quote

Post by nurali » Sat Jun 21, 2025 2:28 pm

Hello all:
I saw this on https://wiki.archlinux.org/title/Podman#Rootless_Podman:
Enable kernel.unprivileged_userns_clone

First, check the value of kernel.unprivileged_userns_clone by running:

$ sysctl kernel.unprivileged_userns_clone

If it is currently set to 0, enable it by setting 1 via sysctl or a kernel parameter.
Note: linux-hardened has kernel.unprivileged_userns_clone set to 0 by default.

But on Gentoo wiki, this is not mentioned, I saw an issue in podman's repo asking about "why I have to enable unprivileged_userns_clone"
I am alittle bit confused (I am a java developer, have very limited knowledge on those things)
Do I actually need to do that? I am using systemd as init system.
(Oh yes, I need rootless mode)
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Sat Jun 21, 2025 2:45 pm

You might or might not need it, depending on your use case. I don't understand much either but user's should stand for user name space. And if you want to run containers, I guess they need their own name spaces, so they should be cloneable.

I'm a java developer too and so far I haven't needed to do it but then I don't use containers much.

Best Regards,
Georgi
Top
nurali
Apprentice
Apprentice
User avatar
Posts: 201
Joined: Thu Nov 17, 2022 3:24 pm
Location: Somewhere,Earth

  • Quote

Post by nurali » Sat Jun 21, 2025 3:01 pm

logrusx wrote:You might or might not need it, depending on your use case. I don't understand much either but user's should stand for user name space. And if you want to run containers, I guess they need their own name spaces, so they should be cloneable.

I'm a java developer too and so far I haven't needed to do it but then I don't use containers much.

Best Regards,
Georgi
Thanks for replying
I need databases on my local machine and I was using docker, maybe I should keep using docker...
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Sat Jun 21, 2025 4:44 pm

nurali wrote:
logrusx wrote:You might or might not need it, depending on your use case. I don't understand much either but user's should stand for user name space. And if you want to run containers, I guess they need their own name spaces, so they should be cloneable.

I'm a java developer too and so far I haven't needed to do it but then I don't use containers much.

Best Regards,
Georgi
Thanks for replying
I need databases on my local machine and I was using docker, maybe I should keep using docker...
I think you should be able to use podman, I'll try it at home. Never used it because I have local installations of both mysql and postgres
Top
sMueggli
l33t
l33t
Posts: 627
Joined: Sat Sep 03, 2022 9:22 am

  • Quote

Post by sMueggli » Mon Jun 23, 2025 3:23 pm

I think that Arch Linux is patching the "CONFIG_USER_NS_UNPRIVILEGED" into the Arch Linux kernel.

If you want to run podman containers in rootless mode you should follow https://wiki.gentoo.org/wiki/Podman#Con ... the_kernel.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Jun 23, 2025 4:02 pm

sMueggli wrote:I think that Arch Linux is patching the "CONFIG_USER_NS_UNPRIVILEGED" into the Arch Linux kernel.

If you want to run podman containers in rootless mode you should follow https://wiki.gentoo.org/wiki/Podman#Con ... the_kernel.
You are correct, there's neither such kernel config option, nor grep -r unprivileged_userns_clone returns anything.
nurali wrote: I need databases on my local machine and I was using docker, maybe I should keep using docker...
I was able to successfully pull, run and connect to a postgresql DB running podman as my regular user without any additional configuration.

Best Regards,
Georgi
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Jun 25, 2025 8:46 am

I just updated docker and here's what postinst message it displayed:
* Install additional packages for optional runtime features:
* sys-apps/rootlesskit for rootless mode support
* for rootless mode you also need a network stack
* app-containers/slirp4netns for rootless mode network stack
I haven't tried that and will likely not, but thought it was worth mentioning it.

Best Regards,
Georgi
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic