From 2c347e3a85326d9060fe6f225800bd655859e98d Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 18 Feb 2025 09:23:07 +0300 Subject: [PATCH] Explain which features require `$XDG_RUNTIME_DIR` Fixes #70 --- content/getting-started/common/login.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/getting-started/common/login.md b/content/getting-started/common/login.md index fb09174..3389039 100644 --- a/content/getting-started/common/login.md +++ b/content/getting-started/common/login.md @@ -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` + +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