我从https://centos7.iuscommunity.org/ius-release.rpm下载了rpm文件到本地。我想在centos环境中安装下载的文件。然而,当我在dockerfile中给出"yum -y install ius-release-1.0-15.ius.centos7.noarch.rpm“时,我得到了一个错误:" error : open of ius-release-1.0-15.ius.centos7.noarch.rpm failed: No when file or directory”。目的是安装本地rpm包,它位于dockerfile所在的目录中。请帮帮我!
是不是我没有给出正确的rpm文件路径?
发布于 2019-02-09 21:33:16
所需的命令应该是yum -y localinstall <filename>
,但您需要修改Dockerfile
,以便首先将文件ADD
到docker映像。
https://stackoverflow.com/questions/54528872
复制相似问题