docker / docker/docker-install
[Docker Rootless] systemd not detected (docker-ce-rootless-extras)
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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