Traffic Server Docker Image
官方Apache Traffic Server Docker镜像,基于openEuler构建,是高性能云服务构建块,支持缓存代理和插件扩展,适用于构建大规模Web应用。
Quick reference
-
The official Apache Traffic Server docker image.
-
Maintained by: https://gitee.com/openeuler/cloudnative.
-
Where to get help: https://gitee.com/openeuler/cloudnative, https://gitee.com/openeuler/community.
Apache Traffic Server | openEuler
Current Apache Traffic Server docker images are built on the https://repo.openeuler.org/. This repository is free to use and exempted from per-user rate limits.
Traffic Server is a high-performance building block for cloud services. It's more than just a caching proxy server; it also has support for plugins to build large scale web applications.
Learn more on https://docs.trafficserver.apache.org/en/latest/index.html.
Supported tags and respective Dockerfile links
The tag of each traffic-server docker image is consist of the version of traffic-server and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 10.2.1-oe2403sp4 | traffic 10.2.1 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/traffic-server/10.2.0/24.03-lts-sp4/Dockerfile | traffic 10.2.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/traffic-server/10.1.0/24.03-lts-sp4/Dockerfile | traffic 10.1.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/traffic-server/10.1.0/24.03-lts-sp2/Dockerfile | traffic 10.1.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/traffic-server/10.0.5/24.03-lts-sp1/Dockerfile | Apache Traffic Server 10.0.5 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
Usage
This guide shows how to run the Apcache Traffic Server(ATS) as a simple local proxy in a single-node setup, forwarding traffic to a Nginx container running on the same host.
-
Pull the
openeuler/traffic-serverimage from docker‘You can select the corresponding
{Tag}based your need.bashdocker pull openeuler/traffic-server:{Tag} -
Run a backend Nginx container
Start a Nginx container listening on port
8080:docker run -d --name nginx -p 8080:8080 openeuler/nginx:latest -
Configuration the forwarding rule
Edit the default https://github.com/apache/trafficserver/blob/10.0.5/configs/remap.config.default. Add the following line:.
# remap.config map http://localhost/ http://127.0.0.1:8080/Notes:
- This tells ATS to forward requests for
http://localhost/to the Nginx backend running on127.0.0.1:8080. - Make sure the port
8080matches the port you exposed for your Nginx container. - You can adjust the backend address in
remap.configaccording to your actual backend service.
- This tells ATS to forward requests for
-
Run the Traffic Server container
Start the Traffic Server container and mount your
remap.configto overwrite the default inside the container:docker run -d \ --name traffic-server \ -p 8081:8080 \ -v $(pwd)/remap.config:/usr/local/trafficserver/etc/trafficserver/remap.config \ my-traffic-server-imageOptional:
- If you need to customize Traffic Server's default behavior, you can modify the https://github.com/apache/trafficserver/blob/10.0.5/configs/records.yaml.default.in and mount it in the same way:
-v $(pwd)/records.yaml:/usr/local/trafficserver/etc/trafficserver/records.yaml - This will overwrite the default config inside the container with your customized version.
Tip:
- The container's internal port is defined by
proxy.config.http.server_portinrecords.yaml(default is usually8080). - The
-p 8081:8080maps your host port8081to Traffic Server's internal8080port.
- If you need to customize Traffic Server's default behavior, you can modify the https://github.com/apache/trafficserver/blob/10.0.5/configs/records.yaml.default.in and mount it in the same way:
-
Verify the forwarding
Test the forwarding by sending a request to your Traffic Server container:
curl -v -H "Host: localhost" http://127.0.0.1:8081/You should see the response coming from the backend Nginx server through Traffic Server.
Question and answering
If you have any questions or want to use some special features, please submit an issue or a pull request on https://gitee.com/openeuler/openeuler-docker-images.
openeuler 命名空间的其他可用镜像:
openeuler/openeuler
openeuler/open-webui
openeuler/openclaw
openeuler/opencode
openeuler/vllm-ascend
openeuler/kylin
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 traffic-server 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务