Skip to content

Explain which features require $XDG_RUNTIME_DIR #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions content/getting-started/common/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ weight: 10
---

Most Rootless Containers implementations need the `$XDG_RUNTIME_DIR` environmental variable to be set.
When the environment variable is not set, features related to systemd and cgroups are unlikely to work properly.
When the environment variable is not set, the features related to `systemd` and `cgroups` are unlikely
to work properly:

The value is typically set to `/run/user/$UID` automatically by systemd or elogind on logging into the host.
* `docker run --cpus, --memory, --pids-limit`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not just them.
When the variable is unset, even the daemon refuses to start up
https://github.com/moby/moby/blob/v28.0.1/contrib/dockerd-rootless.sh#L49


The `$XDG_RUNTIME_DIR` value is typically set to `/run/user/$UID` automatically by `systemd` or
`elogind` on logging into the host.

Run the following command to confirm:
```console
Expand Down