Windows中拒绝docker权限 [英] docker permission denied in windows

查看:530
本文介绍了Windows中拒绝docker权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个这样的docker文件:

I create a docker file like this:

FROM jupyter/scipy-notebook

MAINTAINER Jon Krohn <jon@untapt.com>

USER $NB_USER

# install TensorFlow
RUN conda install tensorflow tensorflow

# install tflearn and keras: 
RUN pip install tflearn==0.3.2
RUN pip install keras==2.0.8

# install NLP packages:
RUN pip install nltk==3.2.4
RUN pip install gensim==2.3.0

# install Reinforcement Learning packages:
RUN pip install gym==0.9.4

我的问题是在构建映像后,我想使用以下命令运行该映像:

my problem is after building my image when I want to run this Image with:

docker run -v D:/TensorFlow-LiveLessons:/home/jovyan/work -it --rm -p 8888:8888 tensorflow-ll-stack .    

我收到此错误消息

[FATAL tini (6)] exec . failed: Permission denied      

我共享了D驱动器,并且我使用的是win10。

感谢您的任何帮助。

I shared the D drive and I'm using win10.
thanks for any help.

推荐答案

似乎您的问题出在您的最后一条命令上。在: docker run -v D:/ TensorFlow-LiveLessons:/ home / jovyan / work -it --rm -p 8888:8888 tensorflow-ll-stack。,您告诉码头工人使用命令。启动容器。从您在评论中链接到我的文档中,您将 docker build docker run 混合在一起。

It seems that your problem is at you last command. In : docker run -v D:/TensorFlow-LiveLessons:/home/jovyan/work -it --rm -p 8888:8888 tensorflow-ll-stack ., you are telling docker to launch a container with a command ".". From the doc you linked me in the comments, you mixed up docker build and docker run.

Docker构建采用上下文路径作为参数,可以在其中找到Dockerfile。如果从同一目录执行命令,则通常为。。

Docker build take a context path as a parameter, where it can find a Dockerfile. It often a ".", if you are executing the command from the same directory.

Docker run 命令作为参数,它将用作您图像的入口点。

Docker run take a command as a parameter, which will be used as an entry point for you image.

现在,它看起来更像是一个复制过去的问题,因为您的文档显示泊坞窗运行命令是 docker run -vc:/ full / path / to / the / clone:/ home / jovyan / work -it --rm -p 8888:8888 tensorflow-ll-stack 毫无意义,但了解docker构建和docker运行并不难。

Now, it looks more like a copy past problem, since you documentation show that the docker run command is docker run -v c:/full/path/to/the/clone:/home/jovyan/work -it --rm -p 8888:8888 tensorflow-ll-stack without the point, but it never bad to learn about docker build and docker run.

玩得开心!

这篇关于Windows中拒绝docker权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆