docker / docker/docker-install

[Docker Rootless] systemd not detected (docker-ce-rootless-extras)

Open
#326 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.2k
Forks
863
Avg merge
3h 15m
Merged PRs (30d)
2

Description

OS: Ubuntu 22.04.1 LTS
Installed packages (apt-get): uidmap and docker-ce-rootless-extras
Running Command: dockerd-rootless-setuptool.sh install
Results in:

[INFO] systemd not detected, dockerd-rootless.sh needs to be started manually:

PATH=/home/valheim/bin:/sbin:/usr/sbin:$PATH dockerd-rootless.sh

[INFO] CLI context "rootless" already exists
[INFO] Use CLI context "rootless"
Current context is now "rootless"

[INFO] Make sure the following environment variables are set (or add them to ~/.bashrc):

export PATH=/home/valheim/bin:$PATH
Some applications may require the following environment variable too:
export DOCKER_HOST=unix:///home/valheim/.docker/run/docker.sock

I've tested nearly all variations to work around it. E.g. setting export variables beforehand, setting them on runtime, giving the user all kinds of permissions, using loginctl enable-linger, etc. But none seems to work. The only way I was beeing able to make it work was the following:

XDG_RUNTIME_DIR=/home/valheim/.docker/run curl -fsSL https://get.docker.com/rootless | s

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dockerd-rootless-setuptool.sh install command and compare its systemd detection path with the rootless installer at https://get.docker.com/rootless. Reproduce the Ubuntu 22.04.1 LTS setup using uidmap and docker-ce-rootless-extras, including the XDG_RUNTIME_DIR workaround. Done means rootless installation detects the available service environment or provides a working setup without the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.