-
Notifications
You must be signed in to change notification settings - Fork 834
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
Unable to use docker, in addition to the 'docker version' command. #575
Comments
Thanks for reporting this! Docker is actually more than just a userspace process; a big part of its logic has been merged directly into the Linux kernel. Microsoft has indicated that they don't plan to implement the kernel portions of Docker for WSL: The recommended alternative is to install the Windows version of Docker, and point the WSL Docker command-line tools at the Windows Docker daemon over TCP. (Or just use Windows Docker directly -- IMO the Windows Docker experience just got a lot cleaner as of Docker 1.12, released publicly earlier this week.) |
you can add this to export DOCKER_HOST=tcp://:2375 |
I have trouble using docker (tried 1.12 1.11 and 1.10 clients so far). Regardless whether I use the Native (Hyper-V based) docker engine or a remote unix one, any docker build is stalling on sending the context (usually it shows the first few Kb or even up to 3Mb being sent) strace doesn't show anything helpful :(
Occasionally the futex is released, followed by a few clock_gettime calls, but nothing else. Nework, CPU, Memory are 100% idle as well until I manually SIGTERM it. |
I should note however that build seems to be the only command I tried that doesn't work. Run/stop/ps/kill/exec seem to work fine. |
Also it seems that issue ensues from a 6mb file I have in the context. It works if my context is small enough, but with that file present I always get a failure. |
I'm on 14379 It seems to still happen, and yea, they may well be related. I will try a few docker builds with various file sizes to see if there is a breaking point. What are the default TCP buffer sizes btw? sysctl isn't working yet (though could probably check /proc..) |
looks like it breaks around 1MByte+ for a single file. Docker also seems to put multiple files together since 2+ Files broke at ~700KByte each.... also noticed this: Possibly related to SO_BROADCAST not yet supported? |
Also insight into the network stack is pretty hard right now :D proc is empty, no packet analyzer seems to work... ip doesn't work either. :( |
bump. It's also not working yet on 14393.5 |
It could well be that you're hitting #610 or #616 . Could you post an strace of the For For what it's worth -- I'm not a Microsoft dev, I'm just a user who's using Docker and (unrelatedly) hitting similar network issues. You could try pinging the official folks who have responded on those tickets to see if they have thoughts on this one as well. From experience, the first thing they'll ask for is "do you have a complete strace of all threads of the failing command?" |
Thanks @aseering . You're right, it cannot be related to SO_BROADCAST. It's also next to impossible to trace properly since the upload seems to split into multiple forked processes. Tracing the forks has an interesting side effect of actually working so far 100% to get past the content upload -.- |
same here. not working. i followed exactly this blog from Darth. i even installed Powershell docker server/clients. even the first docker run hello-world not running too well. http://darthnunix.blogspot.com.au/2016/06/docker-cli-on-wsl-for-docker-beta-on.html |
Please make Docker work in WSL! |
+1 |
1 similar comment
+1 |
Please see the blog post on using Docker with WSL - https://blogs.msdn.microsoft.com/commandline/2017/12/08/cross-post-wsl-interoperability-with-docker/ |
Maybe the Linux kernel version is too low (docker requires 3.10+)?
The text was updated successfully, but these errors were encountered: