Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 尝试运行基本ubuntu映像时出现关键错误_Docker_Dockerfile - Fatal编程技术网

Docker 尝试运行基本ubuntu映像时出现关键错误

Docker 尝试运行基本ubuntu映像时出现关键错误,docker,dockerfile,Docker,Dockerfile,我正在尝试运行Docker教程中描述的基本映像:- docker --version Docker version 1.9.0, build 76d6bc9 docker run -t -i ubuntu:14.04 /bin/bash 但它正在报道: Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubuntu/images: x509: certificate is valid

我正在尝试运行Docker教程中描述的基本映像:-

docker --version
Docker version 1.9.0, build 76d6bc9

docker run -t -i ubuntu:14.04 /bin/bash
但它正在报道:

Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubuntu/images: x509: certificate is valid for FG3K6C3A15800002, not index.docker.io
我在一个公司防火墙后面,所以已经适当地设置了http_proxy和https_proxy env变量。服务器本身就是Ubuntu 14.04 LTS

我读过很多关于时钟设置等的帖子,但这些似乎还可以


有人有什么想法吗?

即使您声明已设置了代理变量,请确保在
/etc/default/docker
中尝试这整套代理变量:

export "HTTP_PROXY=http://<user>:<password>@<proxy.company.com>:<port>"
export "HTTPS_PROXY=http://<user>:<password>@<proxy.company.com>:<port>"
export "http_proxy=http://<user>:<password>@<proxy.company.com>:<port>"
export "https_proxy=http://<user>:<password>@<proxy.company.com>:<port>"
export "NO_PROXY=.company.com,.sock,localhost,127.0.0.1,::1"
export "no_proxy=.company.com,.sock,localhost,127.0.0.1,::1"
导出“HTTP_PROXY=HTTP://:@: 导出“HTTPS_PROXY=http:/:@:” 导出“http_proxy=http:/:@:” 导出“https_proxy=http:/:@:” 导出“NO_PROXY=.company.com、.sock、localhost、127.0.0.1、::1” 导出“no_proxy=.company.com、.sock、localhost、127.0.0.1、::1” 如果这不能解决问题,请将docker升级到最新的1.10.1

注:提及
码头工人机器规定
作为解决办法


更新

我刚才也遇到了同样的问题,显然它是通过将docker重置为出厂设置并再次启用Kubernetes集群而修复的

编辑:我设法在第二台机器上复制了修复程序。在我的案例中,具体步骤是:

  • 启动Docker桌面
  • 更新至3.2.1->之后立即更新至3.2.2
  • 更新至3.2.2
  • 启用Kubernetes群集->等待出现错误
  • 右键单击系统托盘中的Docker->选择疑难解答
  • 单击重置为出厂默认值->等待重置完成
  • 右键单击系统托盘中的Docker->选择退出Docker Desktop
  • 再次打开Docker桌面
  • 选择仅启用Kubernetes
尝试一下: