docker / docker/docker-install
request: XDG_RUNTIME_DIR for the default docker cli rootless binary
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
Description
Hi,
Can the docker rootless cli defaults to connect to $XDG_RUNTIME_DIR/docker.sock
instead of /var/run/docker.sock if no DOCKER_HOST or --context, and relatives defined?
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Build with BuildKit (Docker Inc., v0.6.3)
Server:
ERROR: Cannot connect to Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
it make sense as this is for rootless..
similar to podman approach -
"path defaults to either /run/podman/podman.sock, or /run/user/<uid>/podman/podman.sock if running rootless."
Thanks.
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 by locating the Docker CLI's default connection selection for rootless use, including handling of DOCKER_HOST, --context, and XDG_RUNTIME_DIR. Compare the existing default with the rootless socket behavior described in the issue, then verify that explicit hosts and contexts remain unchanged and that the default resolves to the requested socket.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100