RHEL7:如何解决“import read failed(2)”?
RHEL7: How to solve “ import read failed(2)”?
我正在尝试使用以下命令(取自 link https://docs.docker.com/docker-trusted-registry/install/install-csengine/)为 CS 包添加 Docker 的 public 密钥:
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
中添加主机条目,请告诉我?
此问题是由您的防火墙引起的,启用/禁用它并重试
systemctl disable firewalld
systemctl stop firewalld
或
systemctl enable firewalld
systemctl start firewalld
我正在尝试使用以下命令(取自 link https://docs.docker.com/docker-trusted-registry/install/install-csengine/)为 CS 包添加 Docker 的 public 密钥:
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
中添加主机条目,请告诉我?
此问题是由您的防火墙引起的,启用/禁用它并重试
systemctl disable firewalld
systemctl stop firewalld
或
systemctl enable firewalld
systemctl start firewalld