Nginx 镜像
镜像列表
- 本镜像仅仅是将
nginx
同步到registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx
- 未修改镜像内容
- docker hub 镜像
- 同步镜像流水线:https://gitlab.xuxiaowei.com.cn/hub.docker.com/github.com/nginx/nginx/-/pipelines
- 注意:仅提供以下版本,其他版本待更新,如需其他版本,请 联系我
镜像 | 说明 |
---|---|
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.27.0 | 1.27.0 代表版本号,支持:386、amd64、arm、arm64、mips64le、ppc64le、s390x 平台 |
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.26.0 | |
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.25.0 | |
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.23.3 | |
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.14-alpine |
shell
sudo docker run \
-itd \
--restart always \
--name nginx-1.27.0 \
-p 80:80 \
-p 443:443 \
-d registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.27.0
shell
sudo docker run \
-itd \
--restart always \
--name nginx-1.27.0 \
-p 80:80 \
-p 443:443 \
-v /nginx/conf.d:/etc/nginx/conf.d \
-d registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nginx:1.27.0
shell
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
shell
cat /etc/apt/sources.list.d/debian.sources
sed -i "s#deb.debian.org#mirrors.aliyun.com#" /etc/apt/sources.list.d/debian.sources
cat /etc/apt/sources.list.d/debian.sources
apt update