Overview

Full name
docker.io/runalsh/nginx
Registry
docker.io
Namespace
runalsh
Repository
nginx
Cached tags
42
Last synced
07/06/2026, 01:52 AM

Introduction

runalsh 定制 Nginx 反向代理镜像,预置常用模块与配置模板,轻量 Web 入口与静态资源服务。

Details

runalsh/nginx 基于官方 Nginx 维护的定制构建,预置常用第三方模块与默认配置,适合快速部署反向代理与静态站点。定位为轻量 HTTP 入口,需挂载自定义 nginx.conf 与证书;docker 或 K8s Deployment 前置网关。

快速启动

docker run -d --name nginx \
  -p 80:80 \
  -v /data/nginx/html:/usr/share/nginx/html \
  docker.io/runalsh/nginx:latest

推荐实践

docker run -d --name nginx \
  --restart unless-stopped \
  -p 80:80 -p 443:443 \
  -v /data/nginx/conf:/etc/nginx/conf.d \
  -v /data/nginx/certs:/etc/nginx/certs \
  docker.io/runalsh/nginx:1.25.0

核心参数说明

  • -p 80:80 — HTTP 入口
  • -v .../conf:... — 站点与 upstream 配置
  • -v .../certs:... — TLS 证书
  • 对比 — 官方 nginx 镜像更通用

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - name: nginx
          image: docker.io/runalsh/nginx:1.25.0
          ports:
            - containerPort: 80
          volumeMounts:
            - name: config
              mountPath: /etc/nginx/conf.d
      volumes:
        - name: config
          configMap:
            name: nginx-conf
---
apiVersion: v1
kind: Service
metadata:
  name: nginx
spec:
  selector:
    app: nginx
  ports:
    - port: 80
      targetPort: 80

Ingress 前置或 LoadBalancer 暴露;ConfigMap 热更新配置。

Latest tags (20)

View all 42 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/runalsh/nginx
:1.29.2
linux/amd64
2026/03/29 03:5610.9 MBsha256:98f5b2283282
docker.io/runalsh/nginx
:latest
linux/amd64
2026/03/29 03:5610.9 MBsha256:98f5b2283282
docker.io/runalsh/nginx
:openssl-1.29.2
linux/amd64
2026/03/29 03:5610.9 MBsha256:98f5b2283282
docker.io/runalsh/nginx
:openssl
linux/amd64
2026/03/29 03:5610.9 MBsha256:98f5b2283282
docker.io/runalsh/nginx
:1.29.0
linux/amd64
2025/12/21 18:1010.4 MBsha256:b95e8c400503
docker.io/runalsh/nginx
:openssl-1.29.0
linux/amd64
2025/12/21 18:1010.4 MBsha256:b95e8c400503
docker.io/runalsh/nginx
:quictls-1.29.0
linux/amd64
2025/12/20 07:3617.6 MBsha256:f59b785c27f3
docker.io/runalsh/nginx
:quictls
linux/amd64
2025/12/20 07:3617.6 MBsha256:f59b785c27f3
docker.io/runalsh/nginx
:boringssl-1.29.0
linux/amd64
2025/12/20 07:2812.0 MBsha256:59fbc0128078
docker.io/runalsh/nginx
:boringssl
linux/amd64
2025/12/20 07:2812.0 MBsha256:59fbc0128078
docker.io/runalsh/nginx
:quictls-1.28.0
linux/amd64
2025/12/12 07:2217.6 MBsha256:3937ad7279c2
docker.io/runalsh/nginx
:boringssl-1.28.0
linux/amd64
2025/12/12 07:1511.9 MBsha256:783995f922e1
docker.io/runalsh/nginx
:1.28.0
linux/amd64
2025/12/12 07:129.5 MBsha256:87d50348ee82
docker.io/runalsh/nginx
:openssl-1.28.0
linux/amd64
2025/12/12 07:129.5 MBsha256:87d50348ee82
docker.io/runalsh/nginx
:quictls-1.27.3
linux/amd64
2025/08/13 09:5817.6 MBsha256:05307ae3495f
docker.io/runalsh/nginx
:boringssl-1.27.3
linux/amd64
2025/08/13 09:5111.9 MBsha256:b23d44307d9c
docker.io/runalsh/nginx
:1.27.3
linux/amd64
2025/08/13 09:489.5 MBsha256:f067f2cd8392
docker.io/runalsh/nginx
:openssl-1.27.3
linux/amd64
2025/08/13 09:489.5 MBsha256:f067f2cd8392
docker.io/runalsh/nginx
:deb-1.27.3
linux/amd64
2025/01/06 00:0134.8 MBsha256:77ac11f1d22f
docker.io/runalsh/nginx
:deb
linux/amd64
2025/01/06 00:0134.8 MBsha256:77ac11f1d22f