httpd

centos/httpd Docker Image

自动构建

基于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

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 httpd 镜像标签

docker pull docker.xuanyuan.run/centos/httpd:<标签>

DockerHub 原生拉取命令

docker pull centos/httpd:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告