![](/img/trans.png)
[英]Docker on Linux: All actions (hello-world, pull image, etc) yield timeouts
[英]docker run hello-world still fails, permission denied
我正在嘗試運行docker但它仍然失敗。 這就是我得到的
root@c1170137:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Extracting 974 B/974 B
docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: permission denied.
See 'docker run --help'.
內核:4.4.16-1-pve
我正在使用debian jessie
Distributor ID: Debian
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie
編輯:daemon.log http://hastebin.com/qinufacuto.coffee
碼頭工人信息
root@c1177124:~# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.1
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.16-1-pve
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 32
Total Memory: 2 GiB
Name: c1177124
ID: 4YUJ:OL2E:WLJC:23WJ:5HRW:LRY3:QHKC:MKXO:JDWO:VWOQ:JMWN:V52W
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
127.0.0.0/8
順便說一下,問題可能是由內核引起的。 感謝您的任何想法或解決方案
使用lxc.apparmor.profile: unconfined
只需放在/etc/pve/lxc/ID.conf
文件的末尾,然后重新啟動LXC容器即可。
使用lxc.aa_profile: unconfined
已棄用,因為已重命名。
如果您不關心安全性或信任您的docker容器:
lxc.aa_profile: unconfined
,在/etc/pve/lxc/ID.conf
的主機上編輯lxc容器的配置文件。 apt-get remove apparmor --purge
Iam在Host上執行此命令解決了這個問題:
lxc config設置your-lxc-name security.nesting為true
lxc config設置your-lxc-name security.privileged為true
我有同樣的錯誤。 就我而言,這是由McAfee殺毒軟件引起的。 我刪除它然后成功拉。 McAffe阻止了/ etc / passwd文件夾,Docker無法提取圖像。
在這里,人們有同樣的問題: https : //github.com/moby/moby/issues/37817
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.