我试图在码头工具中提取图片并发出以下错误:
root @ ubuntu:〜#docker pull hello-world
拉出存储库hello-world
FATA [0003]得到 https://index.docker.io/v1/repositories/library/hello-world/images: x509:无法加载系统根目录并且没有提供根目录
答案 0 :(得分:0)
确保正确设置系统时间。当我的VM时间与现实世界不同步时,我看到了这个错误。
试
sudo ntpdate time.nist.gov
答案 1 :(得分:0)
您需要更新repos,删除lxc-docker并安装docker-engine
添加新的gpg密钥
$ apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
编辑/etc/apt/sources.list.d/docker.list
$ vim /etc/apt/sources.list.d/docker.list
#remove the contents and replace with the following depending on your os and version:
deb https://apt.dockerproject.org/repo debian-wheezy main
deb https://apt.dockerproject.org/repo debian-jessie main
deb https://apt.dockerproject.org/repo debian-stretch main
deb https://apt.dockerproject.org/repo ubuntu-precise main
deb https://apt.dockerproject.org/repo ubuntu-trusty main
deb https://apt.dockerproject.org/repo ubuntu-utopic main
deb https://apt.dockerproject.org/repo ubuntu-vivid main
deb https://apt.dockerproject.org/repo ubuntu-wily main
更新源文件后,运行以下命令:
$ apt-get update
删除旧的
$ apt-get purge lxc-docker*
安装新的
$ apt-get install docker-engine
答案 2 :(得分:0)
我通过运行两个命令来解决这个问题
这是sudo service docker restart
----------------------------------------------
Program | GN | GNF | SC |SCF
----------------------------------------------
P01 | 10 | 2 | 5 | 2
P02 | 10 | 2 | 5 | 2
现在拉任何一个
答案 3 :(得分:0)
两种修复方法。
1)您可以登录docker:docker login(控制台命令)-10%可以提供帮助
2)docker在ubuntu上安装时遇到问题。
您需要编辑文件/etc/resolv.conf
2.1)接下来两行添加到此文件
byte[] documentBytes = IOUtils.toByteArray(documentInputStream);
nameserver 8.8.8.8
2.2)并重新启动docker
nameserver 8.8.4.4