|Re: [cdt-dev] CDT & WSL2-Docker|
When using WSL, Docker for Windows expects you to supply your volume paths in a format that matches this:
But, WSL doesn’t work like that. Instead, it uses the
/mnt/c/Users/nick/dev/myapp format. Honestly I think Docker should change their path to use
/mnt/c because it’s more clear on what’s going on, but that’s a discussion for another time.
get things to work for now, you have 2 options. If you’re running
Windows 18.03 (Spring 2018) or newer you can configure WSL to mount at
/ instead of
/mnt and you’re all done. If you’re running 17.09 (Fall 2017) you’ll need to do something else.
I finally have some time to look into CDT and Docker again. The problem
I currently facing is that I'm trying to mount my wsl2 path into docker
to get reasonable compile times. It seems like Docker does some magic
mounting between WSL-2 Distros and then into the Docker container.
Trying to mount //$WSL/... fails. :(
Any Ideas or pointers?
Schillerstraße 14 | 90409 Nürnberg
Telefon: +49 (0)911 180778-50
E-Mail: moritz.struebe@xxxxxxxxxx | Web: www.mathema.de
Geschäftsführer: Andreas Hanke, Thomas Haug
Handelsregister: HR B 35517, Nürnberg/Bayern
Back to the top