首页 文章

Docker错误在Ubuntu中拉取图像

提问于
浏览
0

我正在尝试在docker中提取图像,它会出现以下错误:

root @ ubuntu:〜#docker pull hello-world Pulling repository hello-world FATA [0003]获取https://index.docker.io/v1/repositories/library/hello-world/images:x509:无法加载系统根,没有提供根

4 回答

  • 0

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

    尝试

    sudo ntpdate time.nist.gov
    
  • 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:
    

    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精确

    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
    
    • 更新源文件后,运行以下命令:
    $ apt-get update
    
    • 删除旧的
    $ apt-get purge lxc-docker*
    
    • 安装新的
    $ apt-get install docker-engine
    
  • 0

    我解决这个问题是通过运行两个命令这是 sudo apt-get install --reinstall ca-certificates ca-certificates-java

    sudo service docker restart
    

    现在拉任何一个

  • 0

    两种方法来解决 .

    1)您可以登录docker:docker login(控制台命令) - 10%可以提供帮助

    2)docker在ubuntu上安装有问题 .

    您需要编辑文件/etc/resolv.conf

    2.1)接下来两行添加到此文件中

    nameserver 8.8.8.8
    

    nameserver 8.8.4.4

    2.2)并重启docker

    sudo service docker restart
    

相关问题