首页 > 解决方案 > 安装 docker 时证书验证失败

问题描述

我正在尝试在代理后面的 ubuntu 18.04 中安装 docker ce。我添加了 gpg 密钥,在我的 sourcecs.list 文件中,docker 条目如下所示:

deb [arch=amd64 trusted=yes] http://download.docker.com/linux/ubuntu bionic stable
deb-src [arch=amd64 trusted=yes] http://download.docker.com/linux/ubuntu bionic stable

我通过首先在另一个系统中下载然后移动到当前系统然后 apt-key add 来安装密钥。

在运行 sudo apt-get update 我收到错误:

 Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/stable/source/Sources  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: xx.xx.xx.xx xxxx] (proxy address)

标签: dockerdocker-compose

解决方案


推荐阅读