How does centos installed in docker share folders with windows?

docker, is installed on windows and centos7, is installed in docker. I want to map the d:/workspace/www directory of windows and the / var/www directory of centos7. How should I set it?

Aug.20,2021

/ / create a container
/ /-p port mapping
/ /-v the local directory is mapped to the container
docker run-dit-p 80:80-p 3306-var/www/:d:/workspace/www-- name nginx-mysql-php7-composer new-lnmp / bin/bash

Menu