snowdreamtech查看中文加速指南
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
bashdocker run -d \ --name=nginx \ -e TZ=Asia/Shanghai \ --restart unless-stopped \ snowdreamtech/nginx:latest
Advance
bashdocker run -d \ --name=nginx \ -e TZ=Asia/Shanghai \ -v /path/to/data:/path/to/data \ --restart unless-stopped \ snowdreamtech/nginx:latest
Docker Compose
Simple
bashservices: nginx: image: snowdreamtech/nginx:latest container_name: nginx environment: - TZ=Asia/Shanghai restart: unless-stopped
Advance
bashservices: nginx: image: snowdreamtech/nginx:latest container_name: nginx environment: - TZ=Asia/Shanghai volumes: - /path/to/data:/path/to/data restart: unless-stopped
Development
bashdocker 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
- https://icloudnative.io/posts/multiarch-docker-with-buildx/
- 如何使用 docker buildx 构建跨平台 Go 镜像
- https://www.docker.com/blog/multi-arch-images/
- https://www.docker.com/blog/how-to-rapidly-build-multi-architecture-images-with-buildx/
- https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
- https://github.com/docker/buildx
Contact (备注:nginx)
- WeChat/***: sn0wdr1am
License
MIT
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull snowdreamtech/nginx:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务