httpd

Apache HTTP Server Docker Image

基于openEuler构建的官方Httpd Docker镜像,提供Apache HTTP Server功能,适用于快速部署Web服务器,支持amd64和arm64架构,由openEuler CloudNative SIG维护,免费使用且无用户速率限制。

下载次数: 0状态:社区镜像维护者:openEuler 官方容器镜像仓库类型:镜像最近更新:1 个月前

Httpd Docker镜像(openEuler)

镜像概述和主要用途

本镜像为官方Httpd Docker镜像,基于openEuler构建,由https://gitee.com/openeuler/cloudnative维护。Apache HTTP Server(简称Apache)是一款著名的Web服务器应用,在万维网发展初期发挥了关键作用,自1996年4月起一直是使用最广泛的HTTP服务器。本镜像可免费使用且无用户速率限制,适用于快速部署Web服务。

获取帮助:https://gitee.com/openeuler/cloudnative、https://gitee.com/openeuler/community

核心功能和特性

  • 基于openEuler操作系统构建,具备良好的兼容性和稳定性
  • 集成Apache HTTP Server,提供标准Web服务器功能
  • 支持多架构部署(amd64、arm64)
  • 提供多个版本标签,对应不同Httpd版本与openEuler版本组合
  • 轻量级设计,适合容器化部署场景

支持的标签及Dockerfile链接

每个httpd镜像标签由Httpd版本和基础镜像版本组成,详情如下:

标签说明支持架构
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.66/24.03-lts-sp2/DockerfileHttpd 2.4.66 基于 openEuler 24.03-LTS-SP2amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.51/22.03-lts/DockerfileApache HTTP Server 2.4.51 基于 openEuler 22.03-LTSamd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.58/22.03-lts-sp3/DockerfileApache HTTP Server 2.4.58 基于 openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.62/22.03-lts-sp1/DockerfileApache HTTP Server 2.4.62 基于 openEuler 22.03-LTS-SP1amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.62/22.03-lts-sp3/DockerfileApache HTTP Server 2.4.62 基于 openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.62/22.03-lts-sp4/DockerfileApache HTTP Server 2.4.62 基于 openEuler 22.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.62/24.03-lts/DockerfileApache HTTP Server 2.4.62 基于 openEuler 24.03-LTSamd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/httpd/2.4.65/24.03-lts-sp2/DockerfileApache HTTP Server 2.4.65 基于 openEuler 24.03-LTS-SP2amd64, arm64

使用方法和配置说明

拉取镜像

根据需求选择对应的{Tag},执行以下命令拉取镜像:

bash
docker pull docker.xuanyuan.run/openeuler/httpd:{Tag}

启动Httpd实例

启动一个Httpd容器实例:

bash
docker run -d --name my-httpd -p 80:80 docker.xuanyuan.run/openeuler/httpd:{Tag}

实例启动后,可通过http://localhost:80访问Httpd服务。

容器启动选项

选项说明
-p 80:80将容器的80端口映射到主机的80端口,使服务可通过localhost:80访问
-v /local/path/to/website:/var/www/html将本地网站目录挂载到容器内的/var/www/html,用于提供自定义网站内容
-v /path/to/httpd.conf:/usr/local/apache2/conf/httpd.conf挂载本地自定义的httpd.conf配置文件,覆盖容器默认配置

查看容器运行日志

bash
docker logs -f my-httpd

进入容器交互式shell

bash
docker exec -it my-httpd /bin/bash

问答

如有任何问题或需要使用特殊功能,请在https://gitee.com/openeuler/openeuler-docker-images提交issue或pull request。

镜像拉取方式

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

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

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

DockerHub 原生拉取命令

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