我正在尝试使用以下命令(取自链接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
添加主持人条目,请告诉我。
答案 0 :(得分:1)
此问题是由您的防火墙引起的,请启用/禁用它,然后重试
systemctl disable firewalld
systemctl stop firewalld
或
systemctl enable firewalld
systemctl start firewalld