专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏

ubuntu/nginx Docker 镜像 - 轩辕镜像

nginx
ubuntu/nginx
Nginx是一款高性能的反向代理和Web服务器,以高并发处理能力、低资源消耗及出色的稳定性著称,广泛应用于各类网站架构中,承担请求转发、负载均衡、静态资源服务等关键任务,其长期跟踪版本由Canonical公司负责维护,为用户提供持续可靠的技术支持与版本更新。
135 收藏0 次下载activeubuntu镜像
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

***led Ubuntu for Nginx

Current Nginx Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer Nginx or Ubuntu release. This repository is free to use and exempted from per-user rate limits.

About Nginx

Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a proxy to reduce the load on back-end HTTP or mail servers. Read more on the nginx website.

Tags and Architectures

!LTS Up to 5 years of free security maintenance on LTS channels.

!ESM Up to 10 years of customer security maintenance from Canonical's restricted repositories.

Channel TagsSupported untilCurrentlyArchitectures
1.27-24.04_stable1-24.04, 1-24.04_beta, 1-24.04_candidate, 1-24.04_edge, 1-24.04_stable, 1.27-24.04, 1.27-24.04_beta, 1.27-24.04_candidate, 1.27-24.04_edge-Nginx 1.27 on Ubuntu 24.04 LTSamd64
1.26-24.10_beta1.26-24.10_edge, edge, latest-Nginx 1.26 on Ubuntu 24.10 amd64, arm64, ppc64le, s390x
1.24-24.04_beta1.24-24.04_edge-Nginx 1.24 on Ubuntu 24.04 LTSamd64, s390x, ppc64le, arm64
1.24-23.10_beta1.24-23.10_edge-Nginx 1.24 on Ubuntu 23.10 ppc64le, s390x, arm64, amd64
1.22-23.04_beta1.22-23.04_edge-Nginx 1.22 on Ubuntu 23.04 s390x, arm64, amd64, ppc64le
1.22-22.10_beta1.22-22.10_edge-Nginx 1.22 on Ubuntu 22.10 amd64, s390x, ppc64le, arm64
1.18-22.04_beta1.18-22.04_edge-Nginx 1.18 on Ubuntu 22.04 LTSamd64, s390x, ppc64le, arm64
1.18-21.10_beta1.18-21.10_edge-Nginx 1.18 on Ubuntu 21.10 amd64, s390x, arm64, ppc64le
1.18-21.04_beta1.18-21.04_edge-Nginx 1.18 on Ubuntu 21.04 s390x, arm64, amd64, ppc64le
1.18-20.04_beta1.18-20.04_edge-Nginx 1.18 on Ubuntu 20.04 LTSarm64, amd64, ppc64le, s390x
track_risk

Channel Tags shows the most stable channel for that track ordered stable, candidate, beta, edge. More risky channels are always implicitly available. So if beta is listed, you can also pull edge. If candidate is listed, you can pull beta and edge. When stable is listed, all four are available. Images are guaranteed to progress through the sequence edge, beta, candidate before stable.

Commercial use and Extended Security Maintenance channels

If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using ***).

Usage

Launch this image locally:

sh
docker run -d --name nginx-container -e TZ=UTC -p 8080:80 ubuntu/nginx:1.27-24.04_stable

Access your Nginx server at http://localhost:8080.

Parameters
ParameterDescription
-e TZ=UTCTimezone.
-p 8080:80Expose Nginx on localhost:8080.
-v /local/path/to/website:/var/www/htmlMount and serve a local website.
-v /path/to/conf.template:/etc/nginx/templates/conf.templateMount template files inside /etc/nginx/templates. They will be processed and the results will be placed at /etc/nginx/conf.d. (e.g. listen ${NGINX_PORT}; will generate listen 80;).
-v /path/to/nginx.conf:/etc/nginx/nginx.confLocal configuration file nginx.conf (try this example).
Testing/Debugging

To debug the container:

sh
docker logs -f nginx-container

Deploy with Kubernetes

Works with any Kubernetes; if you don't have one, we recommend you install MicroK8s and microk8s.enable dns storage then snap alias microk8s.kubectl kubectl.

Download nginx.conf, index.html and nginx-deployment.yml and set containers.nginx.image in nginx-deployment.yml to your chosen channel tag (e.g. ubuntu/nginx:1.27-24.04_stable), then:

sh
kubectl create configmap nginx-config --from-file=nginx=nginx.conf --from-file=nginx-site=index.html
kubectl apply -f nginx-deployment.yml

You will now be able to connect to the nginx server on http://localhost:31080.

Bugs and feature requests

If you find a bug in our image or want to request a specific feature, please file a bug here:

[***]

Please title the bug "nginx: <issue summary>". Make sure to include the digest of the image you are using, from:

sh
docker images --no-trunc --quiet ubuntu/nginx:<tag>

Deprecated channels & tags

These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.

TrackVersionEOLUpgrade Path
track

Deployment & Usage Documentation

手把手教你使用 Docker 部署 Nginx 教程

本文详细介绍了基于轩辕镜像的 Nginx 镜像拉取方法(含登录验证、免登录(推荐)、官方直连等方式),以及三种适合不同场景的 Docker 部署方案(快速部署用于测试、目录挂载用于实际项目、docker-compose 用于企业级场景),同时提供了服务验证步骤和常见问题解决方案(如端口访问、HTTPS 配置、日志切割、时区修正),内容循序渐进、操作指令完整,专为初学者设计,可直接对照执行完成 Nginx 部署。

Read More
查看更多 nginx 相关镜像 →
nginx logo
nginx
by library
官方
Nginx的官方构建版本是由Nginx官方团队开发并发布的正式软件版本,具备高性能、轻量级和稳定性等核心特性,支持HTTP、HTTPS、SMTP等多种协议,可广泛应用于Web服务器部署、反向代理、负载均衡及HTTP缓存等场景,经过严格测试与优化,确保了运行的安全性和可靠性,是全球众多企业及开发者构建高效网络服务的首选官方版本。
211351B+ pulls
上次更新:9 天前
nginx/nginx-ingress logo
nginx/nginx-ingress
by NGINX Inc.
认证
NGINX和NGINX Plus入口控制器是专为Kubernetes设计的流量管理工具,主要用于管理外部HTTP/HTTPS流量进入Kubernetes集群,支持请求路由、负载均衡、SSL终止、流量控制等功能,适用于容器化应用和微服务架构,其中NGINX Plus还提供商业支持、高级监控和增强的负载均衡能力,帮助提升集群流量管理的效率与安全性。
1111B+ pulls
上次更新:4 天前
nginx/nginx-prometheus-exporter logo
nginx/nginx-prometheus-exporter
by NGINX Inc.
认证
NGINX Prometheus Exporter用于收集并导出NGINX与NGINX Plus的监控指标,供Prometheus采集以实现对其运行状态的监控。
5050M+ pulls
上次更新:10 天前
nginx/nginx-ingress-operator logo
nginx/nginx-ingress-operator
by NGINX Inc.
认证
用于NGINX和NGINX Plus入口控制器的NGINX入口操作器,基于Helm图表构建。
31M+ pulls
上次更新:4 天前
nginx/unit logo
nginx/unit
by NGINX Inc.
认证
此仓库已停用,建议用户改用Docker官方提供的镜像,具体官方镜像可通过链接[***]
6510M+ pulls
上次更新:2 年前
nginx/nginx-quic-qns logo
nginx/nginx-quic-qns
by NGINX Inc.
认证
用于 NGINX QUIC 协议互操作性测试的 Docker 镜像,集成 QUIC 支持,简化 QUIC 实现的兼容性验证与功能测试流程。
110K+ pulls
上次更新:3 年前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ubuntu/nginx
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
免费获取在线技术支持请提交工单,官方QQ群: 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.
轩辕镜像 官方专业版 Logo
轩辕镜像轩辕镜像官方专业版
首页个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429