Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build your own centos

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Build your own centos

Reference: https://blog.51cto.com/wangxiaoke/2437063

Reference: https://blog.csdn.net/TheKingOfNight/article/details/86532789

Reference: https://www.cnblogs.com/wajika/p/6592659.html

It hasn't been tested yet, there's a hole...

[root@node1 custom-centos] # cat Dockerfile

FROM centos:7MAINTAINER wangmaziMAINTAINER wangmazi@jd.comRUN 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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report