
https://github.com/IYism/docker-tengine/actions/workflows/build-alpine3-image.yml/badge.svg](https://github.com/IYism/docker-tengine/actions/workflows/build-alpine3-image.yml)
A production-ready, multi-architecture Docker image for https://github.com/alibaba/tengine, Alibaba's high-performance web server based on Nginx. Optimized for modern web applications with Lua scripting, GMSSL support, and advanced compression.
| Feature | Description |
|---|---|
| GMSSL/NTLS | National ***graphic algorithms (SM2/SM3/SM4) via https://github.com/Tongsuo-Project/Tongsuo |
| Lua Scripting | Dynamic request handling with https://github.com/openresty/luajit2 and https://github.com/openresty/lua-nginx-module |
| PCRE2 JIT | High-performance regular expressions with JIT compilation |
| Brotli Compression | Modern compression algorithm for faster content delivery |
| GeoIP2 | IP geolocation using MaxMind databases |
| Multi-Platform | Supports linux/amd64 and linux/arm64 architectures |
| Multi-OS | Available for Alpine, Ubuntu, Debian, Fedora, and Rocky Linux |
bash# Pull from Docker Hub docker pull sungyism/tengine:latest # Run container docker run -d -p 80:80 -p 443:443 --name tengine sungyism/tengine:latest # Test Lua functionality curl http://localhost/get_json
| Tag | Base Image | Architecture |
|---|---|---|
latest | Alpine 3 | amd64, arm64 |
3.1.0-alpine-3 | Alpine 3 | amd64, arm64 |
3.1.0-ubuntu-24.04 | Ubuntu 24.04 | amd64, arm64 |
3.1.0-debian-12 | Debian 12 | amd64, arm64 |
3.1.0-fedora-41 | Fedora 41 | amd64 |
3.1.0-rockylinux-9 | Rocky Linux 9 | amd64, arm64 |
bashdocker run -d \ -p 80:80 \ -p 443:443 \ --name tengine \ sungyism/tengine:latest
bashdocker run -d \ -p 80:80 \ -p 443:443 \ -v /path/to/nginx.conf:/etc/nginx/nginx.conf \ -v /path/to/conf.d:/etc/nginx/conf.d \ -v /path/to/ssl:/etc/nginx/ssl \ -v /path/to/html:/data/public \ --name tengine \ sungyism/tengine:latest
yamlversion: '3.8' services: tengine: image: sungyism/tengine:latest ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./conf.d:/etc/nginx/conf.d - ./ssl:/etc/nginx/ssl restart: unless-stopped
nginxserver { listen 443 ssl; server_name localhost; enable_ntls on; # SM2 sign certificate ssl_sign_certificate /etc/nginx/ssl/SS.cert.pem; ssl_sign_certificate_key /etc/nginx/ssl/SS.key.pem; # SM2 encryption certificate ssl_enc_certificate /etc/nginx/ssl/SE.cert.pem; ssl_enc_certificate_key /etc/nginx/ssl/SE.key.pem; ssl_ciphers "ECC-SM2-SM4-CBC-SM3:ECC-SM2-SM4-GCM-SM3:ECDHE-SM2-SM4-CBC-SM3:ECDHE-SM2-SM4-GCM-SM3"; ssl_protocols TLSv1.2 TLSv1.3; location / { return 200 "GMSSL connection established: $ssl_protocol"; } }
bash# Build default Alpine image docker build -t tengine:local . # Build with specific Tengine version docker build --build-arg TENGINE_VERSION=3.0.0 -t tengine:3.0.0 . # Build specific OS variant docker build -f ubuntu/24.04/Dockerfile -t tengine:ubuntu24 . docker build -f debian/12/Dockerfile -t tengine:debian12 . docker build -f fedora/41/Dockerfile -t tengine:fedora41 . docker build -f rockylinux/9/Dockerfile -t tengine:rockylinux9 . # Build multi-platform image docker buildx build --platform linux/amd64,linux/arm64 -t tengine:latest .
| Module | Description |
|---|---|
| ngx_tongsuo_ntls | GMSSL/NTLS national ***graphy support |
| mod_config | Dynamic configuration |
| mod_dubbo | Dubbo RPC integration |
| mod_strategy | Load balancing strategy |
| ngx_http_concat_module | CSS/JS concatenation |
| ngx_http_proxy_connect_module | HTTP CONNECT method support |
| ngx_http_reqstat_module | Request statistics |
| ngx_http_sysguard_module | System resource protection |
| ngx_http_upstream_check_module | Active health checks |
| ngx_http_upstream_dynamic_module | Dynamic upstream resolution |
| ngx_http_upstream_dyups_module | Dynamic upstream management |
| ngx_http_upstream_session_sticky_module | Session persistence |
| ngx_http_upstream_vnswrr_module | Virtual node smooth weighted round-robin |
| Module | Description |
|---|---|
| https://github.com/vision5/ngx_devel_kit | Nginx Development Kit |
| https://github.com/openresty/echo-nginx-module | Echo directives for debugging |
| https://github.com/openresty/headers-more-nginx-module | Set/clear input/output headers |
| https://github.com/leev/ngx_http_geoip2_module | GeoIP2 lookup |
| https://github.com/google/ngx_brotli | Brotli compression |
| https://github.com/openresty/lua-nginx-module | Embed Lua into Nginx |
| https://github.com/openresty/stream-lua-nginx-module | Lua for stream module |
| Library | Version |
|---|---|
| https://github.com/openresty/lua-resty-core | 0.1.31 |
| https://github.com/openresty/lua-resty-lrucache | 0.15 |
| https://github.com/openresty/lua-resty-lock | 0.09 |
| https://github.com/openresty/lua-resty-string | 0.16 |
| https://github.com/openresty/lua-cjson | 2.1.0.14 |
| Path | Description |
|---|---|
/etc/nginx/ | Configuration directory |
/etc/nginx/nginx.conf | Main configuration file |
/etc/nginx/conf.d/ | Virtual host configurations |
/etc/nginx/ssl/ | SSL/TLS certificates |
/opt/tengine/ | Tengine home directory |
/opt/tengine/lualib/ | Lua libraries |
/opt/tengine/luamod/ | Lua C modules |
/var/log/nginx/ | Log files |
/docker-entrypoint.d/ | Initialization scripts |
| Variable | Description |
|---|---|
LUA_PATH | Lua module search path |
LUA_CPATH | Lua C module search path |
80 - HTTP443 - HTTPSContributions are welcome! Please feel free to submit issues, pull requests, or suggestions.
This project is licensed under the MIT License - see the LICENSE file for details.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务