nginx

snowdreamtech/nginx Docker Image

Nginx的Docker镜像,支持多平台(amd64、arm32v5/v6/v7、arm64v8、i386、mips64le、ppc64le、riscv64、s390x),适用于Web服务器、反向代理、负载均衡等场景,提供简单及高级部署配置选项。

1 次收藏下载次数: 0状态:社区镜像维护者:snowdreamtech仓库类型:镜像最近更新:
下载命令
点击查看

Nginx

Docker Image packaging for Nginx. (amd64, arm32v5, arm32v6, arm32v7, arm64v8, i386, mips64le, ppc64le,riscv64, s390x)

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

Docker Cli

Simple

bash
docker run -d \
  --name=nginx \
  -e TZ=Asia/Shanghai \
  --restart unless-stopped \
  snowdreamtech/nginx:latest

Advance

bash
docker run -d \
  --name=nginx \
  -e TZ=Asia/Shanghai \
  -v /path/to/data:/path/to/data \
  --restart unless-stopped \
  snowdreamtech/nginx:latest

Docker Compose

Simple

bash
services:
  nginx:
    image: snowdreamtech/nginx:latest
    container_name: nginx
    environment:
      - TZ=Asia/Shanghai
    restart: unless-stopped

Advance

bash
services:
  nginx:
    image: snowdreamtech/nginx:latest
    container_name: nginx
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - /path/to/data:/path/to/data
    restart: unless-stopped

Development

bash
docker buildx create --use --name build --node build --driver-opt network=host
docker buildx build -t snowdreamtech/nginx --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x . --push

Reference

  1. https://icloudnative.io/posts/multiarch-docker-with-buildx/
  2. 如何使用 docker buildx 构建跨平台 Go 镜像
  3. https://www.docker.com/blog/multi-arch-images/
  4. https://www.docker.com/blog/how-to-rapidly-build-multi-architecture-images-with-buildx/
  5. https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
  6. https://github.com/docker/buildx

Contact (备注:nginx)




  • WeChat/***: sn0wdr1am

License

MIT

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 nginx 镜像标签

docker pull docker.xuanyuan.run/snowdreamtech/nginx:<标签>

DockerHub 原生拉取命令

docker pull snowdreamtech/nginx:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告