openeuler/traffic-serverThe official Apache Traffic Server docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current Apache Traffic Server docker images are built on the openEuler. 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 Apache Traffic Server Website.
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.1.0-oe2403sp2 | traffic 10.1.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 10.0.5-oe2403sp1 | Apache Traffic Server 10.0.5 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
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-server image 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 remap.config. Add the following line:.
# remap.config map http://localhost/ [***]
Notes:
http://localhost/ to the Nginx backend running on 127.0.0.1:8080.8080 matches the port you exposed for your Nginx container.remap.config according to your actual backend service.Run the Traffic Server container
Start the Traffic Server container and mount your remap.config to 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-image
Optional:
-v $(pwd)/records.yaml:/usr/local/trafficserver/etc/trafficserver/records.yaml
Tip:
proxy.config.http.server_port in records.yaml(default is usually 8080).-p 8081:8080 maps your host port 8081 to Traffic Server's internal 8080 port.Verify the forwarding
Test the forwarding by sending a request to your Traffic Server container:
curl -v -H "Host: localhost" [***]
You should see the response coming from the backend Nginx server through Traffic Server.
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务