centos查看中文加速指南
自动构建
基于CentOS系统的Apache httpd Docker镜像,用于作为Web服务器运行,支持通过端口映射部署。
36 次收藏下载次数: 0状态:自动构建维护者:centos仓库类型:镜像最近更新:
dockerfiles-centos-httpd
CentOS Dockerfile for Apache httpd
Build
Copy the sources down and do the build
# docker build --rm -t <username>/httpd .
Usage
To run (if port 8080 is available and open on your host):
# docker run -d -p 8080:8080 <username>/httpd
or to assign a random port that maps to port 80 on the container:
# docker run -d -p 8080 <username>/httpd
To the port that the container is listening on:
# docker ps
Test
# curl http://localhost:8080
centos 命名空间的其他可用镜像:
centos/nginx-112-centos7
Nginx 1.12 Web 服务器,基于 CentOS 7,适合传统 Web 应用
centos/postgresql-10-centos7
CentOS 7 PostgreSQL 10 官方镜像,适合遗留 PG10 迁移
centos/mysql-57-centos7
CentOS 7 MySQL 5.7 官方镜像,适合遗留 MySQL 5.7 迁移
centos/httpd-24-centos7
Httpd 24 Centos7 容器镜像,适合 centos 维护的 Httpd 24 Centos7 工作负载部署
centos/ruby-22-centos7
Ruby 22 Centos7 容器镜像,适合 centos 维护的 Ruby 22 Centos7 工作负载部署
centos/ruby-23-centos7
Ruby 23 Centos7 容器镜像,适合 centos 维护的 Ruby 23 Centos7 工作负载部署
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull centos/httpd:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务