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

Docker Desktop 2 not Creating Unix Socket on Alpine WSL 2 #5681

Closed
1 of 2 tasks
AlexanderAllen opened this issue Feb 3, 2020 · 7 comments
Closed
1 of 2 tasks

Docker Desktop 2 not Creating Unix Socket on Alpine WSL 2 #5681

AlexanderAllen opened this issue Feb 3, 2020 · 7 comments

Comments

@AlexanderAllen
Copy link

  • I have tried with the latest version of my channel (Stable, 2.2.0.0 42247)
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

  • After enabling WSL integration for Alpine WSL (version 2),
  • Docker Desktop should mount unix socket for communication with Docker Engine.

Actual behavior

docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Information

  • Windows Version: Windows 10 Pro Insider Preview, version 2004, build 19551.1005
  • Docker Desktop Version: Stable, 2.2.0.0 42247
  • Running Windows natively.
PS C:\Users\user> wsl -l -v
  NAME                   STATE           VERSION
* Alpine                 Running         2
  Ubuntu-18.04           Running         2
  docker-desktop         Running         2
  docker-desktop-data    Running         2

Steps to reproduce the behavior

  1. wsl -d Alpine
  2. docker info

wsl-alpine-strace.txt
lxcore_kernel.etl.txt
lxcore_service.etl.txt
lxcore_user.etl.txt

  • What does enabling the WSL 2 in Docker Desktop entail?
  • Is toggling the integration enable the Unix socket for communication with the Docker Daemon?
  • Is integration (and the unix socket) currently available on Ubuntu WSL?
  • Could it be that Alpine is missing additional packages for integration to work?
@AlexanderAllen
Copy link
Author

Some additional basic troubleshooting steps I followed over here:
https://medium.com/@callback.insanity/docker-desktop-2-unix-socket-not-available-on-alpine-wsl-2-96618bbbe3

@simonferquel
Copy link

The proxy (as well as CLI binaries that we ship with docker-desktop) depends on glibc. You need to install a glibc package (such as https://github.com/sgerrand/alpine-pkg-glibc) on your alpine environment to make it work.

@AlexanderAllen
Copy link
Author

You've made my day @simonferquel . Tested, confirmed working. I wrote this morning a story detailing the install and successful test. I can't be thankful enough to your team for the WSL integration, it's magical.

Closed!

@kesor
Copy link

kesor commented Mar 18, 2020

The proxy (as well as CLI binaries that we ship with docker-desktop) depends on glibc. You need to install a glibc package (such as https://github.com/sgerrand/alpine-pkg-glibc) on your alpine environment to make it work.

Any chance that /mnt/wsl/docker-desktop/docker-desktop-proxy can become available as a uclibc binary or a static binary with no dynlib dependencies?

@thunder-spb
Copy link

Just a note, sudo ln -sf /mnt/wsl/docker-desktop/shared-sockets/guest-services/docker.sock /var/run/docker.sock worked for me :) But yeah, that would be great to make this automatically

@rigon
Copy link

rigon commented Jun 3, 2020

@thunder-spb It also works for me!

@docker-robott
Copy link
Collaborator

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

@docker docker locked and limited conversation to collaborators Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants