
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!http://augustash.s3.amazonaws.com/logos/ash-inline-color-500.png
This base container is not currently aimed at public consu*ion. It exists as a starting point for August Ash containers.**
3.0.0, latest https://github.com/augustash/docker-alpine-nginx/blob/3.0.0/Dockerfile2.0.0 https://github.com/augustash/docker-alpine-nginx/blob/2.0.0/Dockerfile1.0.2 https://github.com/augustash/docker-alpine-nginx/blob/1.0.2/Dockerfile1.0.1 https://github.com/augustash/docker-alpine-nginx/blob/1.0.1/Dockerfile1.0.0 https://github.com/augustash/docker-alpine-nginx/blob/1.0.0/Dockerfilehttps://github.com/augustash/docker-alpine-nginx/blob/master/VERSIONS.md
Launch a single-use Nginx container serving the current directory:
bashdocker run --rm \ -p 8080:80 \ -p 8443:443 \ -v $(pwd):/src \ augustash/alpine-nginx
Ports 80 and 443 are exposed via this image. To access the Nginx web server from outside the container, you'll need to map ports on your host to the container.
This container works best in com***ation with our https://github.com/augustash/docker-alpine-phpfpm container so that dynamic content can be served.
Note: If your PHP-FPM container was started with docker-compose and has a network, you'll need to link it differently:
bashdocker run --rm \ -p 8080:80 \ -p 8443:443 \ --link <PHP CONTAINER>:phpfpm \ --net <NETWORK NAME> \ -v $(pwd)/site.template:/config/nginx/hosts.d/site.conf \ -v $(pwd):/src \ augustash/alpine-nginx
The content served by this container lives in the /src directory. You can customize what will be served by mounting a host directory to /src.
The image is prepared in a way to make it relatively easy to customize both Nginx itself and the hosts.
Custom Nginx configuration should be added to /etc/nginx/conf.d/ and custom host files should be added to /etc/nginx/hosts.d/.
The structure of the directory should look like:
bash/config/nginx ├── conf.d │ ├── 10-mime.conf │ ├── 20-logs.conf │ ├── 30-gzip.conf │ ├── 40-general.conf │ └── 50-ssl.conf ├── hosts.d │ └── default.conf └── nginx.conf
To help avoid nasty permissions errors, the container allows you to specify your own PUID and PGID. This can be a user you've created or even root (not recommended).
The following variables can be set and will change how the container behaves. You can use the -e flag, an environment file, or your Docker Compose file to set your preferred values. The default values are shown:
PUID=501PGID=1000NGINX_SSL_SUBJECT=/C=US/ST=MN/L=Minneapolis/O=August Ash/OU=Local Server/CN=*NGINX_DH_SIZE=2048您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 augustash/alpine-nginx 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: