Docker错误在Ubuntu中拉取图像

时间:2015-05-13 09:30:12

标签: ubuntu docker

我试图在码头工具中提取图片并发出以下错误:

  

root @ ubuntu:〜#docker pull hello-world

     

拉出存储库hello-world

     

FATA [0003]得到   https://index.docker.io/v1/repositories/library/hello-world/images:   x509:无法加载系统根目录并且没有提供根目录

4 个答案:

答案 0 :(得分:0)

确保正确设置系统时间。当我的VM时间与现实世界不同步时,我看到了这个错误。

sudo ntpdate time.nist.gov

答案 1 :(得分:0)

您需要更新repos,删除lxc-docker并安装docker-engine

  1. 添加新的gpg密钥

    $ apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    
  2. 编辑/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:
    

    Debian Wheezy

    deb https://apt.dockerproject.org/repo debian-wheezy main
    

    Debian Jessie

    deb https://apt.dockerproject.org/repo debian-jessie main
    

    Debian Stretch / Sid

    deb https://apt.dockerproject.org/repo debian-stretch main
    

    Ubuntu Precise

    deb https://apt.dockerproject.org/repo ubuntu-precise main
    

    Ubuntu Trusty

    deb https://apt.dockerproject.org/repo ubuntu-trusty main
    

    Ubuntu Utopic

    deb https://apt.dockerproject.org/repo ubuntu-utopic main
    

    Ubuntu Vivid

    deb https://apt.dockerproject.org/repo ubuntu-vivid main
    

    Ubuntu Wily

    deb https://apt.dockerproject.org/repo ubuntu-wily main
    
  3. 更新源文件后,运行以下命令:

    $ apt-get update
    
  4. 删除旧的

    $ apt-get purge lxc-docker*
    
  5. 安装新的

    $ 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