Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938965 - app-containers/docker: add support for rootless mode
Summary: app-containers/docker: add support for rootless mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-03 09:59 UTC by Marek Szuba
Modified: 2024-09-05 00:14 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba 2024-09-03 09:59:02 UTC
It would be nice to have Docker packages in Gentoo instrumented for rootless mode. All the plumbing is already there, and I have been running Docker rootless  on two of my systems without issues since early August.

As far as I can tell all that would have to be done here is:
 * RDEPEND on sys-apps/rootlesskit (required) and app-containers/slirp4netns (rootlesskit supports other network stacks as well but slirp4netns is the default one, upstream recommend it for most uses, and unlike e.g. lxc-user-nic is essentially zero-setup)
 * install ${S}/contrib/dockerd-rootless.sh into the same directory as dockerd itself
 * install ${S}/contrib/dockerd-rootless-setup.sh

It might also make sense to add a post-install message telling the users what to do afterwards.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-03 10:04:07 UTC
CCing Rahil in case he's interested.
Comment 2 William Hubbs gentoo-dev 2024-09-05 00:14:37 UTC
I'm fixing this in 27.2.0.
The change I'm making is to symlink the dockerd-rootless* scripts into
/usr/bin and to add optfeature comments about installing the external
packages since they would be optional runtime dependencies.
Comment 3 Larry the Git Cow gentoo-dev 2024-09-05 00:14:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88c9e540fd1e479443b18d4d818c8b80214554fa

commit 88c9e540fd1e479443b18d4d818c8b80214554fa
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2024-09-04 23:48:41 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2024-09-05 00:10:59 +0000

    app-containers/docker: add 27.2.0
    
    Closes: https://bugs.gentoo.org/938965
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 app-containers/docker/Manifest             |   1 +
 app-containers/docker/docker-27.2.0.ebuild | 323 +++++++++++++++++++++++++++++
 app-containers/docker/metadata.xml         |   4 +
 3 files changed, 328 insertions(+)