windows docker mount shared directory
Minbin Jiang Lv4

In docker for windows:

2017-07-24_1049.png

  • Mount d:/logs directory into ubuntu contain as /data

docker run -it -v d:/Logs:/data ubuntu /bin/sh

or

docker run -it -v d:/Logs:/data ubuntu bash

  • Mount directory to nginx

    docker run –name blogserver -v D:/Dropbox/Dropbox/blog/personal_blog/suwenjiang.github.com:/usr/share/nginx/html:ro -d -p 7777:80 nginx

Reference