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

Allow changing of docker config location for WSL integration #700

Open
benedictleejh opened this issue Aug 25, 2024 · 0 comments
Open

Allow changing of docker config location for WSL integration #700

benedictleejh opened this issue Aug 25, 2024 · 0 comments
Assignees
Labels
community_new New idea raised by a community contributor

Comments

@benedictleejh
Copy link

Tell us about your request
I would like a way to configure where in a WSL distro Docker Desktop creates its config files, ideally per installed distro.

Which service(s) is this request for?
Docker Desktop, Windows

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
When Docker Desktop is installed in Windows, enabling WSL integration with an installed WSL distro would create a .docker folder inside $HOME. I am attempting to follow the XDG Base Directory specification to reduce the number of dotfiles in my WSL home directory, and have set DOCKER_CONFIG in my WSL .bashrc. However, Docker Desktop is ignoring this variable and creating ~/.docker.

Are you currently working around the issue?
I know of no current way to force Docker Desktop to create its configs in a different location when enabling WSL integration.

Additional context
#408 is a similar request, but is talking about changing it for the Docker Desktop installed system, rather than integration with installed WSL distros.

@benedictleejh benedictleejh added the community_new New idea raised by a community contributor label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_new New idea raised by a community contributor
Projects
None yet
Development

No branches or pull requests

2 participants