Allow changing of docker config location for WSL integration
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.