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
Proposal: Create apt install package specifically for WSL use-case #32238
Comments
looks like a duplicate of #15360 |
Looks like that became this suggestion over the course of discussion. |
Would very much like to see this happen. |
ping @friism @andrewhsu |
Is there are way to create a package separate from normal Ubuntu and specific to Windows Subsystem for Linux? |
I don't believe there is. Under WSL, Ubuntu believes itself to be a full implementation and attempts to act as one. I'm guessing the best approach will be to offer a different "collection" package such as |
I'm currently struggling to understand what is a correct way to get docker/docker-compose clients work in Windows Subsystem for Linux. In the latest WSL release (windows creators update) instructions given in https://docs.docker.com/engine/installation/linux/ubuntu/ do not work (in previous releases it kind of worked) Though I can install using: But it installs version |
One difference worth noting is how paths are mapped during bind mounts. The filesystem in WSL is Not sure if that requires special handling or configuration when calling the docker command. |
@whitecolor why can't you just invoke the Windows Docker binaries from WSL? https://msdn.microsoft.com/en-us/commandline/wsl/interop |
@friism yes I'm already testing it So potentially there still maybe probelms with running |
Why can't you just use docker-compose.exe? It's installed with Docker for Windows.
Let us know what's not working so we can figure out what's wrong. |
At this moment, I think the easiest way to obtain the docker client, is to download the static package ( $ curl -o docker-ce.tgz -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-17.03.1-ce.tgz
$ tar -xvzf docker-ce.tgz
docker/
docker/docker-containerd-ctr
docker/docker-proxy
docker/docker
docker/docker-containerd
docker/dockerd
docker/docker-init
docker/docker-containerd-shim
docker/docker-runc
$ mv docker/docker /usr/bin
$ docker --version
Docker version 17.03.1-ce, build c6d412e Docker Compose can be installed using the instructions on the releases page on GitHub; https://github.com/docker/compose/releases |
BTW for docker-compose to work in WSL it is need to make a symlinks inside MobyLinux VM. I've created the issue about it long ago docker/for-win#371 |
There is a problem with encoding of python based apps in windows outputting to linux console. |
For the current moment conclusion about using windows binaries in WSL is following: for everything in my docker stack ( |
Let me close this ticket for now, as it looks like it went stale. |
Docker for Windows and Windows Subsystem for Linux combos wonderfully: the docker daemon lives on windows while docker client in Ubuntu can easily connect to the daemon and any containers running can be used from linux-bound applications. It creates almost an ideal dev environment.
The one gotcha is that it was a bit more difficult to set up since the Ubuntu under WSL does not require the docker daemon (and in fact, cannot run it at all). This causes dire warnings when, in fact, it's worked just fine. I don't believe that the setup even requires
$DOCKER_HOST
to point totcp://0.0.0.0:2375
astcp://127.0.0.1:2375
seems to also work just fine.If the packages installed were limited to docker-compose + the docker client without any daemon setup, it would make things much simpler.
The text was updated successfully, but these errors were encountered: