FROM registry01.wezhuiyi.com/library/centos:7.4-gosu
COPY CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
RUN yum makecache
RUN yum -y install wget gettext
makecache的过程中会找镜像源,会出现connect timeout的err,直到找到合适的镜像源。
文档信息
- 本文作者:pnightowl
- 本文链接:https://pnightowlzy.github.io/wiki/yum-install/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)