参考:https://blog.51cto.com/wangxiaoke/2437063
参考:https://blog.csdn.net/TheKingOfNight/article/details/86532789
参考:https://www.cnblogs.com/wajika/p/6592659.html
还未经过测试,有坑…
[root@node1 custom-centos]# cat Dockerfile
FROM centos:7 MAINTAINER wangmazi MAINTAINER wangmazi@jd.com RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && sed -i 13d /etc/yum.conf \ && curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \ && curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo \ && yum install -y --nogpgcheck glibc-common \ && rm -rf /var/cache/yum/* \ && echo LANG="zh_CN.utf8" > /etc/locale.conf \ && echo LANG="zh_CN.utf8" >> /etc/profile
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。