News for hackers. Stuff that matters.
Re:Windows for Linux Nerds by drdaeman on Thursday September 14, 2017 @12:15PM (#15249446)
Sorry, but can you please share any recipes for mixing WSL and Docker, or you just meant that you use one or another on project-to-project basis (not together)?

I know I can do basic commands (even building images with `docker -H 127.0.0.1 build -t foo .` works), but I failed to find any way to share WSL filesystem with the containers (`docker run -v $(pwd):/foo ...`).

Re:Windows for Linux Nerds by cube2222 on Thursday September 14, 2017 @12:54PM (#15249907)
Well, let's say my project's in C:\Development\Projects\MyAmazingProject

I can open bash there (WSL), or start a container

docker run -v C:\Development\Projects\MyAmazingProject:/mnt/project --net=host -it ubuntu bash

Though i usually do this only when I need to debug something. (WSL can't spawn additional threads, which breaks for example Delve, the Go debugger)

Need to connect to a cassandra db? docker run -it cassandra cqlsh mycassandraaddress

Docker compose works well too. And because WSL has unified network interfaces with windows, I can easily start a process in WSL and access a DB which I've run in docker.

I use docker from PowerShell, just saying.