Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: XDG_RUNTIME_DIR for the default docker cli rootless binary #260

Open
idesk2596 opened this issue Nov 3, 2021 · 1 comment
Open

Comments

@idesk2596
Copy link

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.

@AkihiroSuda
Copy link
Contributor

Rootless Docker v22 will use rootless context by default:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants