首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu上的Docker hello-world -拒绝许可

Ubuntu上的Docker hello-world -拒绝许可
EN

Stack Overflow用户
提问于 2015-09-12 09:01:05
回答 1查看 2.2K关注 0票数 1

我试图让docker (v1.8.2)在上工作(使用14_04配置文件中的-g选项- Ubuntu在USB上,并且我在不使用机器磁盘的情况下拖动图像时出错)。结果是,docker提取了hello-world映像,但是由于权限原因,执行失败了。知道我能做些什么来修复它吗?

这是命令和结果:

代码语言:javascript
复制
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添加权限。现在,映像无法加载以下内容:

代码语言:javascript
复制
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)中,我看到:

代码语言:javascript
复制
FATA[0000] Error starting daemon: error initializing graphdriver: truncate /cdrom/docker2/devicemapper/devicemapper/data: file too large

这很奇怪,因为/cdrom (它是包含Ubuntu的USB的挂载)有50 USB可用:

代码语言:javascript
复制
/dev/sdb1        59G  9.1G   50G  16% /cdrom
EN

回答 1

Stack Overflow用户

发布于 2019-08-16 07:45:21

在Ubuntu14.04上,我一直有这些错误。幸运的是,我根据码头网站的指令细节将操作系统更新为16.04

在Ubuntu14.04中,安装方式会导致上面提到的错误。卸载当前版本后尝试此操作,然后

代码语言:javascript
复制
sudo apt-get install docker-ce

要进行检查,请运行命令docker run hello-world。即使在此之后,仍然会出现守护进程错误,请参考正式的码头文件

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32537037

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档