feat: manage docker group with systemd-sysusers (carry #1187)#1195
Conversation
|
With this PR; apt-get -y update && apt-get -y install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get -y update
apt install ./docker-ce_0.0.0~20250520085713.af09051-1~debian.13~trixie_arm64.debThe ls -l /etc/sysusers.d
total 4
-rw-r--r-- 1 root root 235 May 20 11:03 docker.conf❓ https://manpages.debian.org/bookworm/debhelper/dh_installsysusers.1.en.html describes that |
|
If it's installed by a package, yes, absolutely. |
Switches away from the groupadd postinstall commands to managing the docker group with sysusers. This is a declarative way to create and manage users, better suited for the atomic distros such as Silverblue. Signed-off-by: Robert Sturla <robertsturla@outlook.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2edb46a to
8c5e99f
Compare
Updated to install in I was also still trying to use the symlink approach, but didn't manage to get that working so far; #1196 |
|
@vvoland @tianon @neersighted ptal |
There was a problem hiding this comment.
Thank you for taking over this PR!
Work has got extremely busy lately and I've not had chance to do much else. I was going to take a look again today, then noticed this PR.
These changes all look great, and all make complete sense. The old PR had "test" code which I used while waiting for the moby/moby PR to merge, which you've cleared up.
I too couldn't figure out the Debian dh_installsysusers part, so did what I thought was the bare minimum to get something working, bypassing that.
No worries!!
Yeah, same; decided to keep it as a follow-up for now (but likely also requires #1202, which also seems to have issues still to look into). |
I have no idea why exactly the group is missing now. You can reproduce this by installing from our F43 ISOs, rebasing to DX which happens to be on F44 now and then running `ujust devmode` `ujust dx-group` I have no idea how this change never made it into a package. Related: - docker/docker-ce-packaging#1195 - moby/moby#49813
Switches away from the groupadd postinstall commands to managing the docker group with sysusers.
This is a declarative way to create and manage users, better suited for the atomic distros such as Silverblue.
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)