
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
![构建状态]([] ![Quay仓库状态]([]
Startx centos是一个基础容器,用于所有在https://hub.docker.com/u/startx%E6%88%96Quay registry中发布的startx服务和应用。该镜像基于CentOS 7系统,为startx系列服务提供统一的基础运行环境。
适用于开发、测试和部署所有基于startx的服务和应用,尤其适合需要统一基础环境的startx系列项目。可作为基础镜像用于构建自定义startx应用容器。
使用Docker运行
bash# 基本运行 docker run -d --name startx-centos-container startx/centos # 交互式运行 docker run -it --name startx-centos-interactive startx/centos /bin/bash
使用Docker Compose运行
创建docker-compose.yml文件:
yamlversion: '3' services: centos: image: startx/centos container_name: startx-centos restart: unless-stopped # 可添加自定义端口映射、 volumes 等配置 # ports: # - "8080:80" # volumes: # - ./data:/data
启动服务:
bashdocker-compose up -d
使用Openshift运行
Openshift镜像流
创建镜像流:
bashoc create -f https://raw.githubusercontent.com/startxfr/docker-images/centos7/OS/centos/openshift-imageStream.yml
Openshift构建模板
使用构建模板创建构建配置:
bashoc process -f https://raw.githubusercontent.com/startxfr/docker-images/centos7/OS/centos/openshift-template-build.yml | oc create -f -
Openshift部署模板
使用部署模板创建部署配置:
bashoc process -f https://raw.githubusercontent.com/startxfr/docker-images/centos7/OS/centos/openshift-template-deploy.yml | oc create -f -
bash# 使用S2I构建应用镜像 s2i build <源代码仓库> startx/centos <目标镜像名> # 示例 s2i build https://github.com/startxfr/sample-app startx/centos my-startx-app
在自定义Dockerfile中使用:
dockerfileFROM startx/centos:latest # 添加自定义应用代码和配置 COPY ./app /app WORKDIR /app # 定义启动命令 CMD ["/app/start.sh"]
容器支持通过环境变量进行配置,详细的环境变量说明请参考官方文档。
docker start <容器名>docker stop <容器名>docker logs <容器名>docker exec -it <容器名> /bin/bashdocker run命令覆盖默认命令,如docker run startx/centos <自定义命令>bash# 克隆源码仓库 git clone https://github.com/startxfr/docker-images.git cd docker-images/centos7/OS/centos # 构建自定义镜像 docker build -t startx/centos:custom . # 运行自定义镜像 docker run -d --name startx-centos-custom startx/centos:custom
bash# 克隆源码仓库 git clone https://github.com/startxfr/docker-images.git cd docker-images/centos7/OS/centos # 使用docker-compose构建并启动 docker-compose -f docker-compose.build.yml up -d
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 startx/centos 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: