Docker Community Forums

Share and learn in the Docker community.

WSL and Docker for Windows: can not make data volumes in ~/.aws(/home/user/.aws) path


(Thinksource) #1

My windows 10 version is 1803:

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 it is no use. However, I can use volumes like:

docker run -it -v /c/work:/app ubuntu

the data in /c/work will be in path /app

How to map the volumes in ~/.aws, since my aws credential and configuration files there, I need to mapping that folder.