在Windows主机上挂载linux容器

时间:2017-03-13 07:42:38

标签: docker

我是docker的新手,并探索如何将其用于开发。我无法弄清楚如何安装音量。下面是我得到的错误,即使我在docker设置中共享了我的驱动器。希望有人能给我一些指导。

docker: Error response from daemon: error while creating mount source path '/C/Users/TanmayDharmaraj/Documents/Visual Studio 2015/Projects/Docker/Js-mounted': mkdir /C/Users/TanmayDharmaraj/Documents: permission denied.

我使用的docker命令是

docker run -v "C:\Users\TanmayDharmaraj\Documents\Visual Studio 2015\Projects\Docker\Js-mounted":/code js

以下是我正在使用的泊坞窗文件

FROM node:6.10
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir /code
WORKDIR /code

#copy everything to /code including node_modules (see above). Should use .dockerignore to remove node_modules
COPY . .

#Can't run npm install for now as there is a bug in gulp-spsync-creds. So for now, just copy over all node_modules
#RUN npm install

CMD ["npm", "start"]

0 个答案:

没有答案