docs(rootless): setuptool needs a pam_systemd session - #25874
Open
locker95 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Dean Chen <862469039@qq.com>
AkihiroSuda
reviewed
Sep 8, 2026
| `machinectl shell $USER@`). `$XDG_RUNTIME_DIR` must be `/run/user/$(id -u)`. | ||
| If it is empty or something like `~/.docker/run`, the script cannot see | ||
| systemd and tells you to start `dockerd-rootless.sh` by hand. See | ||
| [Troubleshooting](./troubleshoot.md#unable-to-install-with-systemd-when-systemd-is-present-on-the-system). |
Contributor
There was a problem hiding this comment.
This is lengthy and decreases readability.
"The installer will fail if $XDG_RUNTIME_DIR is not set. See Troubleshooting.` should be enough.
AkihiroSuda
reviewed
Sep 8, 2026
| Where `myuser@` is your desired username and @ signifies this machine. | ||
|
|
||
| The same "systemd not detected" message appears when `$XDG_RUNTIME_DIR` is | ||
| missing or is a fallback such as `~/.docker/run`. On a systemd host it must |
Contributor
There was a problem hiding this comment.
"The same" is misleading, as "when $XDG_RUNTIME_DIR is
missing" typically happens when sudo is used
AkihiroSuda
reviewed
Sep 8, 2026
Contributor
There was a problem hiding this comment.
We already have helpful error messages in https://github.com/moby/moby/blob/e0c1583c7891b34bd199fdf9e02fb7c7b65bb1ca/contrib/dockerd-rootless-setuptool.sh#L97-L109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you
sudo suin and$XDG_RUNTIME_DIRis empty (or the~/.docker/runfallback the script prints), it says systemd isn't there even on a systemd box.systemctl --userneeds/run/user/$UID.Called that out on the install page and in the existing troubleshoot section.
@netlify /engine/security/rootless/
Fixes #14491