sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
curl https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm --output epel-release-7-13.noarch.rpm
curl http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/docker-pycreds-1.10.6-3.el7.noarch.rpm --output docker-pycreds-1.10.6-3.el7.noarch.rpm
curl http://mirror.centos.org/centos/7.6.1810/extras/x86_64/Packages/docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm --output docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm
在Artifactory UI中创建一个新的远程存储库,该存储库指向RedHat网站。在“设置”页面中,选择“存储库”,然后单击“新建”,如下所示:
在“新建远程存储库”页面中,输入存储库名称,例如“RedHat”,然后在“URL”字段中输入RedHat存储库的URL:
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/
选择“RedHat”存储库并点击“测试”按钮,测试通过后单击“保存并完成”。
在Artifactory UI中创建一个新的本地存储库,该存储库指向在第2步中创建的本地存储库。在“设置”页面中,选择“存储库”,然后单击“新建”,如下所示:
在“新建本地存储库”页面中,