From 4dc50d705757b336197ae0bb1767e9e932401b2e Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 27 Aug 2021 15:26:38 +0900 Subject: [PATCH] Require `dbus-user-session` for rootless On Debian, `dbus-user-session` is not installed by default. The lack of `dbus-user-session` results in a cryptic error on rootless+cgroup2+systemd: `read unix @->/run/systemd/private: read: connection reset by peer: unknown.` ref: moby/moby issue 42793 Signed-off-by: Akihiro Suda (cherry picked from commit 245b42262768f51f51679d2b0b349b8ede9376b0) Signed-off-by: Akihiro Suda --- deb/common/control | 3 ++- rpm/SPECS/docker-ce-rootless-extras.spec | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deb/common/control b/deb/common/control index 7347fa26c0..e16a215275 100644 --- a/deb/common/control +++ b/deb/common/control @@ -85,7 +85,8 @@ Description: Docker CLI: the open-source application container engine Package: docker-ce-rootless-extras Architecture: linux-any -Depends: ${shlibs:Depends} +Depends: dbus-user-session, + ${shlibs:Depends} Enhances: docker-ce Conflicts: rootlesskit Replaces: rootlesskit diff --git a/rpm/SPECS/docker-ce-rootless-extras.spec b/rpm/SPECS/docker-ce-rootless-extras.spec index e52cfeca67..ed26884627 100644 --- a/rpm/SPECS/docker-ce-rootless-extras.spec +++ b/rpm/SPECS/docker-ce-rootless-extras.spec @@ -13,6 +13,7 @@ Vendor: Docker Packager: Docker Requires: docker-ce +# TODO: conditionally add `Requires: dbus-daemon` for Fedora and CentOS 8 # slirp4netns >= 0.4 is available in the all supported versions of CentOS and Fedora. Requires: slirp4netns >= 0.4 # fuse-overlayfs >= 0.7 is available in the all supported versions of CentOS and Fedora.