错误1 域名解析失败
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
The command '/bin/sh -c yum install -y curl zip unzip wget openssl-devel gcc-c++ make autoconf' returned a non-zero code: 1
解决:关闭防火墙后需重启docker,否则会报错
systemctl stop firewalld
systemctl restart docker