From: "Ludovic Courtès" <ludo@gnu.org>
To: Brian Cully via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org>
Cc: Brian Cully <bjc@spork.org>
Subject: Re: A minimal rootless podman configuration
Date: Thu, 16 Mar 2023 18:28:48 +0100 [thread overview]
Message-ID: <87r0tobo6n.fsf@gnu.org> (raw)
In-Reply-To: <87cz5coyxr.fsf@psyduck.jhoto.kublai.com> (Brian Cully via's message of "Mon, 13 Mar 2023 22:07:46 -0400")
Hi,
Brian Cully via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> skribis:
> Existing attempts to use podman rootless run into issues with the
> cgroups file system being mounted by elogind. Since we now have
> seatd and greetd, we can bypass elogind. Using them, I have
> finally been able to use rootless podman. Since this is something
> that comes up in IRC with some regularity, I wanted to share the
> operating system configuration here.
Nice, well done!
[...]
> ;;
> ;; not strictly required, but without them podman will resort
> to
> ;; single user mapping.
> ;;
> (simple-service 'subuid-subgid etc-service-type
> (list `("subuid"
> ,(plain-file "subuid"
> (string-join
> '("root:65536:65536"
> "test:16777216:65536")
> "\n" 'suffix)))
> `("subgid"
> ,(plain-file "subgid"
> (string-join
> '("root:65536:65536"
> "test:16777216:65536")
> "\n" 'suffix)))))
OK; that works because we have ‘newuidmap’ and ‘newgidmap’ in
‘setuid-programs’ by default.
Interesting, thanks for sharing!
Ludo’.
prev parent reply other threads:[~2023-03-16 17:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 2:07 A minimal rootless podman configuration Brian Cully via Development of GNU Guix and the GNU System distribution.
2023-03-16 17:28 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r0tobo6n.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bjc@spork.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).