2 ms·
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)?
by drdaeman 9y ago
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 ...`).
- cube2222 9y agoWell, 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.