Error AtlasError Documentation and Resolution

Docker rootless mode could not get XDG_RUNTIME_DIR

could not get XDG_RUNTIME_DIR

Rootless Docker could not start because XDG_RUNTIME_DIR is not set, which prevents it from creating runtime files and sockets in the expected user runtime directory.

could not get XDG_RUNTIME_DIRdaemon
could not get XDG_RUNTIME_DIR
  • The XDG_RUNTIME_DIR environment variable is not set.
  • The user session was not created in a way that initializes the runtime directory automatically.
  1. On non-systemd hosts, create a runtime directory and export XDG_RUNTIME_DIR before starting rootless Docker.
  2. On systemd hosts, log in through a session that initializes pam_systemd so the runtime directory is set automatically.
Docker Docs: Rootless troubleshooting
Docker rootless could not get XDG_RUNTIME_DIR: causes and fixes | Error Atlas