Answer the question
In order to leave comments, you need to log in
How to forward volume in WSL?
Installed docker desktop for windows with wsl 2
I want to create a folder in Windows using the composer
service
docker run -v $PWD:/app composer create-project ... project
, I don’t understand where it installs (it says /app/project). $PWD returns the current path in Windows in the \c\user\ style, I tried to specify .:/app - some kind of error, where instead of .:/app it shows .; c:/app. Answer the question
In order to leave comments, you need to log in
Let's say you are in the folder:
D:\Docker\MyFirstProject
and there are two objects in this folder:
DockerFile [file]
Data [folder]
Pass the relative path:
docker run -v ./data:/mnt/data composer create-project ... project
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question