RHEL7:如何解决“导入读取失败(2)”?

时间:2016-01-20 04:31:48

标签: linux docker centos rhel docker-registry

我正在尝试使用以下命令(取自链接https://docs.docker.com/docker-trusted-registry/install/install-csengine/)为CS包添加Docker的公钥:

sudo rpm --import "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"  

但是,我在运行上述命令时遇到以下错误:

curl: (6) Could not resolve host: sks-keyservers.net; Name or service not known
error: https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e: import read failed(2).

是防火墙问题吗?

如果我需要在/etc/hosts添加主持人条目,请告诉我。

1 个答案:

答案 0 :(得分:1)

此问题是由您的防火墙引起的,请启用/禁用它,然后重试

systemctl disable firewalld
systemctl stop firewalld

systemctl enable firewalld
systemctl start firewalld