Closed joeleisner closed 2 years ago
Additional information: Checking ls -la /usr/bin | grep docker
in the Ubuntu-22.04-work
WSL distro shows no symlinks (unlike my Ubuntu-22.04-personal
which has those symlinks). (See attached screenshot).
Attempting to manually symlink these executables shows the following error (when attempting to run docker ps
):
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Please let me know if you need additional information!
Addition information: Exported my Ubuntu-22.04-work
WSL distro and reimported it as a different name; Docker Desktop still wouldn't integrate with it. Additionally, I installed a completely different WSL distro from the Microsoft Store (SUSE Linux Enterprise Server 15 SP4
) and attempted to integrate Docker Desktop with it and it still didn't work. Looks like my Docker Desktop is refusing to integrate with additional WSL distros outside the default one?
Additional information: Deleting the .docker
directory in the home directories of my WSL distros as well as in the home directory of my Windows user and reinstalling Docker Desktop did not fix the issue.
Additional information: I've added my diagnostics ID to the first comment.
Additional information: Updated to Docker Desktop v4.12.0 (85629) - No changes, issue still persists.
Additional information: Just noticed the following notification message from Docker Desktop:
Docker Desktop - Ubuntu 22.04-work WSL integration with distro Ubuntu-22.04-work unexpectedly stopped with exit code 1. Do you want to restart?
Additional information: After researching the above error a bit more, I saw some folks were able to manually set up the integration using /mnt/wsl/docker-desktop/docker-desktop-user-distro proxy
. When running...
sudo /mnt/wsl/docker-desktop/docker-desktop-user-distro proxy --distro-name Ubuntu-22.04-work --docker-desktop-root
/mnt/wsl/docker-desktop
... in my WSL distro, the following output gets returned...
[2022-09-13T20:29:34.823765815Z][docker-desktop-user-distro][I] set path configuration to InsideWslWorkspace
[2022-09-13T20:29:34.825633732Z][docker-desktop-user-distro in Ubuntu-22.04-work][I] mounting /home/joel/development/docker/terminalfour/terminalfour-8.3.9-FINAL-329.war to /mnt/wsl/docker-desktop-bind-mounts/Ubuntu-22.04-work/de6865e85b3cf6250e3ccaa3ecbedd72b7ed0f608d7011b81da2df099684f74c
[2022-09-13T20:29:34.826107152Z][docker-desktop-user-distro in Ubuntu-22.04-work][I] mounting /mnt/c onto itself
[2022-09-13T20:29:34.826391741Z][docker-desktop-user-distro in Ubuntu-22.04-work][I] mounting /home/joel/development/misc/server-images/ts.jupiter to /mnt/wsl/docker-desktop-bind-mounts/Ubuntu-22.04-work/540bff43293cf84c67bb0936c11df761e14af827baebdd040f8f6c57530b2eba
[2022-09-13T20:29:34.826556881Z][docker-desktop-user-distro in Ubuntu-22.04-work][W] restoreMounts: ensure ready failed: mkdir /home/joel/development/misc/server-images/ts.jupiter: file exists
[2022-09-13T20:29:34.826680011Z][docker-desktop-user-distro in Ubuntu-22.04-work][F] mkdir /home/joel/development/misc/server-images/ts.jupiter: file exists
[main.run()
[ docker-desktop-user-distro/main.go:118 +0x4a7
[main.glob..func6(0x14d14a0?, {0xc000424e80?, 0x4?, 0x4?})
[ docker-desktop-user-distro/main.go:79 +0x17
[vendor/github.com/spf13/cobra.(*Command).execute(0x14d14a0, {0xc000424e40, 0x4, 0x4})
[ vendor/github.com/spf13/cobra/command.go:860 +0x663
[vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x14d1220)
[ vendor/github.com/spf13/cobra/command.go:974 +0x3bd
[vendor/github.com/spf13/cobra.(*Command).Execute(...)
[ vendor/github.com/spf13/cobra/command.go:902
[main.main()
[ docker-desktop-user-distro/main.go:512 +0x25
It somehow trying to mount a custom docker image instead of my WSL distro? I'm assuming this is why nothing is working.
Additional information: I've got it running! Taking a look at the previous proxy setup output, I noticed a few key things:
terminalfour-8.3.9-FINAL-329.war
file (which did exist)ts.jupiter
symlink (which no longer existed)I have no idea why Docker would need/want to mount these files, but after clean installs, it shouldn't know about them in any capacity (so some old configuration was left after multiple attempts to wipe everything clean).
However, after removing the files and broken symlinks in question, everything is running as expected (see below screenshot).
I guess I'll close this out on my own. Hopefully this can help someone out in the same circumstance!
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked
Actual behavior
When installing Docker Desktop with the WSL2 based engine enabled, my default distro is integrated to use Docker as expected. However, when attempting to integrate another (non-default) distro, it does not set up properly. (See attached screenshot)
Not sure if it's of any help, but both distros in the screenshot (
Ubuntu-22.04-personal
andUbuntu-22.04-work
) were based off the same Ubuntu 22.04 install from the Microsoft Store (which was exported and imported twice using different names).Expected behavior
Enabling WSL Integration on a non-default distro should automatically set up Docker integrations.
Information
I have attempted to terminate both the
docker-desktop
anddocker-desktop-data
WSL distros and restarting Docker Desktop to rerun them. I have also attempted multiple clean installs of Docker Desktop to no avail.Output of
& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
Steps to reproduce the behavior
docker ps
andwhich docker
to confirm issue.