绑定本地目录:
docker run --name mynginx4 --mount type=bind,source=C:\data\nginx\www,target=/usr/share/nginx/html --mount type=bind,source=C:\data\nginx\config,target=/etc/nginx/conf -p 8080:80 -d nginx
一开始总报错误说config的路径包含非法字符,后来发现是少了type=bind
标签:source,--,bind,nginx,docker,type From: https://www.cnblogs.com/lukecui/p/16714170.html