docker.io/rancher/mirrored-library-nginx:1.27.2-alpine linux/amd64

docker.io/rancher/mirrored-library-nginx:1.27.2-alpine - 国内下载镜像源 浏览次数:51 安全受验证的发布者-Rancher
🐳 根据 Docker Hub 的信息,这个镜像的描述是:

NGINX is a free, open-source web server that can be used as a reverse proxy, load balancer, or HTTP cache. It can also act as a gateway, and it has been widely adopted by many popular websites.

(Note: I've translated the description into Chinese for you.)
源镜像 docker.io/rancher/mirrored-library-nginx:1.27.2-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine
镜像ID sha256:a5967740120f9a30029392fe9c47961962888cc48e6c4b47025b1f2b964ffbb6
镜像TAG 1.27.2-alpine
大小 52.50MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD nginx -g daemon off;
启动入口 /docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 51 次
贡献者
镜像创建 2024-10-02T17:55:35Z
同步时间 2025-11-25 15:44
更新时间 2025-12-15 04:31
开放端口
80/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NGINX_VERSION=1.27.2 PKG_RELEASE=1 DYNPKG_RELEASE=1 NJS_VERSION=0.8.6 NJS_RELEASE=1
镜像标签
NGINX Docker Maintainers <docker-maint@nginx.com>: maintainer

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine  docker.io/rancher/mirrored-library-nginx:1.27.2-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine  docker.io/rancher/mirrored-library-nginx:1.27.2-alpine

Shell快速替换命令

sed -i 's#rancher/mirrored-library-nginx:1.27.2-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine  docker.io/rancher/mirrored-library-nginx:1.27.2-alpine'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine  docker.io/rancher/mirrored-library-nginx:1.27.2-alpine'

镜像构建历史


# 2024-10-03 01:55:35  35.21MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -x     && apkArch="$(cat /etc/apk/arch)"     && nginxPackages="         nginx=${NGINX_VERSION}-r${PKG_RELEASE}         nginx-module-xslt=${NGINX_VERSION}-r${DYNPKG_RELEASE}         nginx-module-geoip=${NGINX_VERSION}-r${DYNPKG_RELEASE}         nginx-module-image-filter=${NGINX_VERSION}-r${DYNPKG_RELEASE}         nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE}     "     && apk add --no-cache --virtual .checksum-deps         openssl     && case "$apkArch" in         x86_64|aarch64)             apk add -X "https://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" --no-cache $nginxPackages             ;;         *)             set -x             && tempDir="$(mktemp -d)"             && chown nobody:nobody $tempDir             && apk add --no-cache --virtual .build-deps                 gcc                 libc-dev                 make                 openssl-dev                 pcre2-dev                 zlib-dev                 linux-headers                 libxslt-dev                 gd-dev                 geoip-dev                 libedit-dev                 bash                 alpine-sdk                 findutils                 curl             && su nobody -s /bin/sh -c "                 export HOME=${tempDir}                 && cd ${tempDir}                 && curl -f -L -O https://github.com/nginx/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz                 && PKGOSSCHECKSUM=\"6982e2df739645fc72db5bdf994032f799718230e7016e811d9d482e5cf41814c888660ca9a68814d5e99ab571e892ada3bd43166e720cbf04c7f85b6934772c *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\"                 && if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then                     echo \"pkg-oss tarball checksum verification succeeded!\";                 else                     echo \"pkg-oss tarball checksum verification failed!\";                     exit 1;                 fi                 && tar xzvf ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz                 && cd pkg-oss-${NGINX_VERSION}-${PKG_RELEASE}                 && cd alpine                 && make module-geoip module-image-filter module-njs module-xslt                 && apk index --allow-untrusted -o ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz ${tempDir}/packages/alpine/${apkArch}/*.apk                 && abuild-sign -k ${tempDir}/.abuild/abuild-key.rsa ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz                 "             && cp ${tempDir}/.abuild/abuild-key.rsa.pub /etc/apk/keys/             && apk del --no-network .build-deps             && apk add -X ${tempDir}/packages/alpine/ --no-cache $nginxPackages             ;;     esac     && apk del --no-network .checksum-deps     && if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi     && if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi     && apk add --no-cache curl ca-certificates # buildkit
                        
# 2024-10-03 01:55:35  0.00B 设置环境变量 NJS_RELEASE
ENV NJS_RELEASE=1
                        
# 2024-10-03 01:55:35  0.00B 设置环境变量 NJS_VERSION
ENV NJS_VERSION=0.8.6
                        
# 2024-10-03 01:55:35  0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
                        
# 2024-10-03 01:55:35  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
                        
# 2024-10-03 01:55:35  0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
                        
# 2024-10-03 01:55:35  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
                        
# 2024-10-03 01:55:35  4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
                        
# 2024-10-03 01:55:35  3.02KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
                        
# 2024-10-03 01:55:35  389.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
                        
# 2024-10-03 01:55:35  2.12KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
                        
# 2024-10-03 01:55:35  1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
                        
# 2024-10-03 01:55:35  9.49MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -x     && addgroup -g 101 -S nginx     && adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx     && apkArch="$(cat /etc/apk/arch)"     && nginxPackages="         nginx=${NGINX_VERSION}-r${PKG_RELEASE}     "     && apk add --no-cache --virtual .checksum-deps         openssl     && case "$apkArch" in         x86_64|aarch64)             set -x             && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655"             && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub             && if echo "$KEY_SHA512 */tmp/nginx_signing.rsa.pub" | sha512sum -c -; then                 echo "key verification succeeded!";                 mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/;             else                 echo "key verification failed!";                 exit 1;             fi             && apk add -X "https://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" --no-cache $nginxPackages             ;;         *)             set -x             && tempDir="$(mktemp -d)"             && chown nobody:nobody $tempDir             && apk add --no-cache --virtual .build-deps                 gcc                 libc-dev                 make                 openssl-dev                 pcre2-dev                 zlib-dev                 linux-headers                 bash                 alpine-sdk                 findutils                 curl             && su nobody -s /bin/sh -c "                 export HOME=${tempDir}                 && cd ${tempDir}                 && curl -f -L -O https://github.com/nginx/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz                 && PKGOSSCHECKSUM=\"6982e2df739645fc72db5bdf994032f799718230e7016e811d9d482e5cf41814c888660ca9a68814d5e99ab571e892ada3bd43166e720cbf04c7f85b6934772c *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\"                 && if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then                     echo \"pkg-oss tarball checksum verification succeeded!\";                 else                     echo \"pkg-oss tarball checksum verification failed!\";                     exit 1;                 fi                 && tar xzvf ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz                 && cd pkg-oss-${NGINX_VERSION}-${PKG_RELEASE}                 && cd alpine                 && make base                 && apk index --allow-untrusted -o ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz ${tempDir}/packages/alpine/${apkArch}/*.apk                 && abuild-sign -k ${tempDir}/.abuild/abuild-key.rsa ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz                 "             && cp ${tempDir}/.abuild/abuild-key.rsa.pub /etc/apk/keys/             && apk del --no-network .build-deps             && apk add -X ${tempDir}/packages/alpine/ --no-cache $nginxPackages             ;;     esac     && apk del --no-network .checksum-deps     && if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi     && if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi     && apk add --no-cache --virtual .gettext gettext     && mv /usr/bin/envsubst /tmp/         && runDeps="$(         scanelf --needed --nobanner /tmp/envsubst             | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }'             | sort -u             | xargs -r apk info --installed             | sort -u     )"     && apk add --no-cache $runDeps     && apk del --no-network .gettext     && mv /tmp/envsubst /usr/local/bin/     && apk add --no-cache tzdata     && ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && mkdir /docker-entrypoint.d # buildkit
                        
# 2024-10-03 01:55:35  0.00B 设置环境变量 DYNPKG_RELEASE
ENV DYNPKG_RELEASE=1
                        
# 2024-10-03 01:55:35  0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1
                        
# 2024-10-03 01:55:35  0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.27.2
                        
# 2024-10-03 01:55:35  0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
                        
# 2024-09-06 20:05:36  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-09-06 20:05:36  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:a5967740120f9a30029392fe9c47961962888cc48e6c4b47025b1f2b964ffbb6",
    "RepoTags": [
        "rancher/mirrored-library-nginx:1.27.2-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx:1.27.2-alpine"
    ],
    "RepoDigests": [
        "rancher/mirrored-library-nginx@sha256:8e9776e1c28f087ed4a5e1b8e8609a0a3a2317fee57f6d2dfe534941c63b263b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/mirrored-library-nginx@sha256:32893404590305e6264a784cf0e8f371102463d1a1a436cde7bd1f3c97875f4f"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-02T17:55:35Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "80/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NGINX_VERSION=1.27.2",
            "PKG_RELEASE=1",
            "DYNPKG_RELEASE=1",
            "NJS_VERSION=0.8.6",
            "NJS_RELEASE=1"
        ],
        "Cmd": [
            "nginx",
            "-g",
            "daemon off;"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "/docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "maintainer": "NGINX Docker Maintainers \u003cdocker-maint@nginx.com\u003e"
        },
        "StopSignal": "SIGQUIT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 52501524,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/580ef9d359a76d52d514cef3c8de8b15a467806131ac8f3cf2f377eae7db8d8c/diff:/var/lib/docker/overlay2/1c44e9eeae386460ea3e7ed747b2c39ab309d5ee072781b5917185ea4f58bd75/diff:/var/lib/docker/overlay2/cf605c98fd14e143dfd26ada38c2e8bedb07900f9936d88b1f59799196fe091e/diff:/var/lib/docker/overlay2/889f2801addb1a1d730d6d0ed176abee0238cab72f94442ccea30f64ecd7f972/diff:/var/lib/docker/overlay2/733b03d1427b57efa952d846afc5e2b31798691a4e9006736f677c066f15f4e4/diff:/var/lib/docker/overlay2/fa64d8bc31ec46f019a72459d5f385f4b0c53edcb3f2c00cf460f0131870aabe/diff:/var/lib/docker/overlay2/58d64008c5110201413caebd2bd97b2a176864a7894984ed70219b56da82d3fe/diff",
            "MergedDir": "/var/lib/docker/overlay2/9518c3e7474d46e3c5118e887019cd7e7e49a8da9e633c5a27324beda880572c/merged",
            "UpperDir": "/var/lib/docker/overlay2/9518c3e7474d46e3c5118e887019cd7e7e49a8da9e633c5a27324beda880572c/diff",
            "WorkDir": "/var/lib/docker/overlay2/9518c3e7474d46e3c5118e887019cd7e7e49a8da9e633c5a27324beda880572c/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:df75bb36e265a5515e9d56559c253f3ad8ac65f67b120ac17dc5d39e3650c1f9",
            "sha256:ffe4285e29068b1a6112d99b633535058b91344bb1eac41cbec3c319c908cc43",
            "sha256:3ca5de8f08eb9b673db2fd9c591abd69b1caa3d98ac0ebe383b4701a3ac75f8b",
            "sha256:19d3bde9037c77ff30ef945e663bbcfffcbca10e80b79f46c916ae0da7e60a07",
            "sha256:8d94d71d4b48c71f9a76bca8dcdf9b752dd604a0276b2047d6c8f748229cbb4d",
            "sha256:1ce97418c44e80dc0051e16deb9966ee8a1579bbbbef9f19ef2a33a45648d6e3",
            "sha256:b67a2e28b4c8ca1857c558050b6d525c5946ffbeeec03c383e7a6bad37c6cd4c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-11-25T15:44:39.27729445+08:00"
    }
}

更多版本

docker.io/rancher/mirrored-library-nginx:1.24.0-alpine

linux/amd64 docker.io41.10MB2024-06-27 13:33
745

docker.io/rancher/mirrored-library-nginx:1.27.2-alpine

linux/arm64 docker.io56.80MB2025-08-12 16:50
162

docker.io/rancher/mirrored-library-nginx:1.27.2-alpine

linux/amd64 docker.io52.50MB2025-11-25 15:44
50