我正在尝试在docker中提取图像,它会出现以下错误:
root @ ubuntu:〜#docker pull hello-world Pulling repository hello-world FATA [0003]获取https://index.docker.io/v1/repositories/library/hello-world/images:x509:无法加载系统根,没有提供根
确保正确设置系统时间 . 当我的VM时间与现实世界不同步时,我看到了这个错误 .
尝试
sudo ntpdate time.nist.gov
您需要更新repos,删除lxc-docker并安装docker-engine
$ apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
$ 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
我解决这个问题是通过运行两个命令这是 sudo apt-get install --reinstall ca-certificates ca-certificates-java
sudo apt-get install --reinstall ca-certificates ca-certificates-java
sudo service docker restart
现在拉任何一个
两种方法来解决 .
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
4 回答
确保正确设置系统时间 . 当我的VM时间与现实世界不同步时,我看到了这个错误 .
尝试
您需要更新repos,删除lxc-docker并安装docker-engine
Debian Wheezy
Debian Jessie
Debian Stretch / Sid
Ubuntu精确
Ubuntu Trusty
Ubuntu Utopic
Ubuntu Vivid
Ubuntu Wily
我解决这个问题是通过运行两个命令这是
sudo apt-get install --reinstall ca-certificates ca-certificates-java
现在拉任何一个
两种方法来解决 .
1)您可以登录docker:docker login(控制台命令) - 10%可以提供帮助
2)docker在ubuntu上安装有问题 .
您需要编辑文件/etc/resolv.conf
2.1)接下来两行添加到此文件中
nameserver 8.8.4.4
2.2)并重启docker