我试图让docker (v1.8.2)在上工作(使用14_04配置文件中的-g选项- Ubuntu在USB上,并且我在不使用机器磁盘的情况下拖动图像时出错)。结果是,docker提取了hello-world映像,但是由于权限原因,执行失败了。知道我能做些什么来修复它吗?
这是命令和结果:
ubuntu@ubuntu:~$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
535020c3e8ad: Pull complete
af340544ed62: Pull complete
library/hello-world:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:02fee8c3220ba806531f606525eceb83f4feb654f62b207191b1c9209188dedd
Status: Downloaded newer image for hello-world:latest
exec: "/hello": permission denied
Error response from daemon: Cannot start container d16115c24bfdf2183a2f5e9abe2c570b85e9edd01f957dbed5f7a084680e42b5: [8] System error: exec: "/hello": permission denied顺便说一句,我已经尝试了几天来在linux上安装和运行boot2docker (我放弃了Mint 17之后切换到了Ubuntu boot2docker--这是在Windows 7上安装boot2docker并在5分钟内完成工作之后)。在同一台计算机和网络上)从USB密钥启动。我已经放弃了尝试将坞文件存储在键本身上(当我拉出时,当拉实际达到那么远的时候,我会得到aufs挂载错误)。所以现在我只是想让码头工人在某种配置下工作。
更新:
我试过几样东西。我尝试使用chmods向坞存储dir添加权限。现在,映像无法加载以下内容:
Error response from daemon: error creating aufs mount to /media/ubuntu/D2CECE16CECDF2B1/docker/aufs/mnt/b43408232092aae0fd14e859732b4cf680db108932dab332d5a75fe2d4bd61f2-init: invalid argument我还尝试在/etc/default/docker中设置以下选项: DOCKER_OPTS="-g /cdrom/docker 2--存储驱动程序=devicemapper“
在日志(/var/ log /upstart/docker.log)中,我看到:
FATA[0000] Error starting daemon: error initializing graphdriver: truncate /cdrom/docker2/devicemapper/devicemapper/data: file too large这很奇怪,因为/cdrom (它是包含Ubuntu的USB的挂载)有50 USB可用:
/dev/sdb1 59G 9.1G 50G 16% /cdromhttps://stackoverflow.com/questions/32537037
复制相似问题