尝试在 RHEL 7,7 上安装 docker-ce。 - 添加回购协议时无法访问网络?
Trying to install docker-ce on RHEL 7,7. - Network is unreachable when adding repo?
我全新安装了 RHEL 7.7。我正在尝试安装 docker-ce。当我尝试添加 docker 存储库时,我得到了网络无法访问的错误消息,但我可以毫无问题地获取存储库文件。我已启用 HTTP_PROXY、HTTPS_PROXY 和 FTP_PROXY 从该主机访问互联网。
知道为什么会这样吗?
我的尝试:
me@prodbbivm01 ~ $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: langpacks, product-id, subscription-manager
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#7 - "Failed to connect to 2600:9000:2164:d200:3:db06:4200:93a1: Network is unreachable"
me@prodbbivm01 ~ $ wget https://download.docker.com/linux/centos/docker-ce.repo
--2020-03-04 10:03:18-- https://download.docker.com/linux/centos/docker-ce.repo
Resolving myproxy.com (myproxy.com)... 10.63.112.43
Connecting to myproxy.com (myproxy.com)|10.63.112.43|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2424 (2.4K) [binary/octet-stream]
Saving to: ‘docker-ce.repo’
100%[=========================================================================================>] 2,424 --.-K/s in 0s
2020-03-04 10:03:18 (324 MB/s) - ‘docker-ce.repo’ saved [2424/2424]
如果我尝试在未启用代理的情况下获取回购文件:
me@prodbbivm01 ~ $ wget https://download.docker.com/linux/centos/docker-ce.repo
--2020-03-04 10:05:04-- https://download.docker.com/linux/centos/docker-ce.repo
Resolving download.docker.com (download.docker.com)... 13.224.12.105, 13.224.12.14, 13.224.12.59, ...
Connecting to download.docker.com (download.docker.com)|13.224.12.105|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.14|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.59|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.128|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:3c00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:9e00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:ce00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:1000:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:1400:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:b200:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:5200:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:9000:3:db06:4200:93a1|:443... failed: Network is unreachable.
好吧...我设法解决了这个问题,但我不明白为什么它会起作用...
我将我的 http 代理添加到 yum.conf 文件,现在我可以添加存储库并从那里继续。
环境中的 http 代理不应该对 yum 足够好吗?
我全新安装了 RHEL 7.7。我正在尝试安装 docker-ce。当我尝试添加 docker 存储库时,我得到了网络无法访问的错误消息,但我可以毫无问题地获取存储库文件。我已启用 HTTP_PROXY、HTTPS_PROXY 和 FTP_PROXY 从该主机访问互联网。
知道为什么会这样吗?
我的尝试:
me@prodbbivm01 ~ $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: langpacks, product-id, subscription-manager
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#7 - "Failed to connect to 2600:9000:2164:d200:3:db06:4200:93a1: Network is unreachable"
me@prodbbivm01 ~ $ wget https://download.docker.com/linux/centos/docker-ce.repo
--2020-03-04 10:03:18-- https://download.docker.com/linux/centos/docker-ce.repo
Resolving myproxy.com (myproxy.com)... 10.63.112.43
Connecting to myproxy.com (myproxy.com)|10.63.112.43|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2424 (2.4K) [binary/octet-stream]
Saving to: ‘docker-ce.repo’
100%[=========================================================================================>] 2,424 --.-K/s in 0s
2020-03-04 10:03:18 (324 MB/s) - ‘docker-ce.repo’ saved [2424/2424]
如果我尝试在未启用代理的情况下获取回购文件:
me@prodbbivm01 ~ $ wget https://download.docker.com/linux/centos/docker-ce.repo
--2020-03-04 10:05:04-- https://download.docker.com/linux/centos/docker-ce.repo
Resolving download.docker.com (download.docker.com)... 13.224.12.105, 13.224.12.14, 13.224.12.59, ...
Connecting to download.docker.com (download.docker.com)|13.224.12.105|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.14|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.59|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|13.224.12.128|:443... failed: Connection refused.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:3c00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:9e00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:ce00:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:1000:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:1400:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:b200:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:5200:3:db06:4200:93a1|:443... failed: Network is unreachable.
Connecting to download.docker.com (download.docker.com)|2600:9000:2164:9000:3:db06:4200:93a1|:443... failed: Network is unreachable.
好吧...我设法解决了这个问题,但我不明白为什么它会起作用...
我将我的 http 代理添加到 yum.conf 文件,现在我可以添加存储库并从那里继续。
环境中的 http 代理不应该对 yum 足够好吗?