chore: add systemd-sysusers configuration

Part of https://github.com/docker/docker-ce-packaging/issues/1186

Adds the required systemd-sysusers configuration to the
moby/moby repo.  This will be used by downstream package
maintainers (RPM, DEB etc) as a replacement to the
`groupadd` postinstall commands.

It's generally recommended to use sysusers since it is
more of a declarative method of defining these service
accounts and groups.

This configuration file specifies a group ("g") named
"docker" should be created with an automatic GID
allocation ("-").

Signed-off-by: Robert Sturla <robertsturla@outlook.com>
This commit is contained in:
Robert Sturla
2025-04-15 19:20:11 +01:00
parent c58a765707
commit 0bd82bfac2

View File

@@ -0,0 +1,9 @@
#
# WARNING: the docker group grants root-level privileges
#
# For details on how this impacts security in your system, see:
#
# https://docs.docker.com/go/attack-surface/
# https://docs.docker.com/go/daemon-access/
#
g docker -