3 Star 2 Fork 28

csphere / centos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Docker镜像介绍

基础镜像(bimage)

基础镜像的parent(父)镜像是从官方Dockerhub中pull下来的,centos:7.1.1503

基础镜像主要完成,安装必须的软件包和常用命令工具

如何构建基础镜像

git clone https://git.oschina.net/csphere/centos.git
cd centos
docker build -t csphere/centos:7 .

如何使用基础镜像

docker run -d --name base csphere/centos:7

如何基于基础镜像构建中间件镜像

  • 创建并编写Dockerfile文件,内容大概如下:
FROM csphere/centos:7
MAINTAINER Carson,C.J.Zeong <zcy@nicescale.com>
RUN yum -y install nginx
...
CMD ["nginx"]
  • 构建镜像
docker build -t csphere/nginx . 

空文件

简介

企业应用,基础镜像 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/csphere/centos.git
git@gitee.com:csphere/centos.git
csphere
centos
centos
master

搜索帮助