My windows 10 version is 1803
I install docker fellow the link:
https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
I try to use -v of docker like:
docker run -it -v ~/.aws:root/.aws/ ubuntu
I also try to use:
docker run -it -v $(realpath ~/.aws):/root/.aws ubuntu
But I find the volumes I want to mapping to docker system is not there.
when I do:
ls /root/.aws
there is always empty, how to mapping the data volumes on Windows Subsystem for linux?
Docker for Windows runs atop Windows itself but has no knowledge of WSL.
In WSL:
/mnt/<drive-letter>
While Docker Engine itself cannot run within WSL, you can install Docker for Windows, and operate it from within WSL using the docker
command-line tool, specifying the hostname via the -h
argument, or export to DOCKER_HOST
in your .bashrc
.
You may find some of these tutorials useful:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With