docker.io/nginxinc/nginx-unprivileged:1.27-alpine linux/amd64

docker.io/nginxinc/nginx-unprivileged:1.27-alpine - 国内下载镜像源 浏览次数:593
这里是镜像描述: nginxinc/nginx-unprivileged 这是一个基于NGINX的Web服务器镜像。该镜像提供了一个可以运行在容器中的NGINX实例,可以用来提供静态和动态Web服务。 该镜像基于Ubuntu 20.04 LTS构建,包含了NGINX 1.21.0版本。它支持多种协议,如HTTP、HTTPS、FTP等,并且支持反向代理和缓存功能。 您可以使用这个镜像来快速部署一个NGINX服务,而无需担心宿主机环境的配置问题。
源镜像 docker.io/nginxinc/nginx-unprivileged:1.27-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine
镜像ID sha256:5b7e2ee8c78d7a7d8410785cb72824a01e52605d2c15b38d0f8da54c8a0ce975
镜像TAG 1.27-alpine
大小 47.02MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD nginx -g daemon off;
启动入口 /docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 593 次
贡献者
镜像创建 2024-10-14T01:24:20.523389378Z
同步时间 2024-10-18 22:04
更新时间 2024-11-21 17:14
开放端口
8080/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 2024-10-14T01:24:08.333Z: org.opencontainers.image.created Unprivileged NGINX Dockerfiles: org.opencontainers.image.description Apache-2.0: org.opencontainers.image.licenses d9fe8c8d56c75ce05645873adf7f44ec27bd03e9: org.opencontainers.image.revision https://github.com/nginxinc/docker-nginx-unprivileged: org.opencontainers.image.source docker-nginx-unprivileged: org.opencontainers.image.title https://github.com/nginxinc/docker-nginx-unprivileged: org.opencontainers.image.url 1.27.2-alpine: org.opencontainers.image.version

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine  docker.io/nginxinc/nginx-unprivileged:1.27-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine  docker.io/nginxinc/nginx-unprivileged:1.27-alpine

Shell快速替换命令

sed -i 's#nginxinc/nginx-unprivileged:1.27-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine  docker.io/nginxinc/nginx-unprivileged:1.27-alpine'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine  docker.io/nginxinc/nginx-unprivileged:1.27-alpine'

镜像历史

大小 创建时间 层信息
0.00B 2024-10-14 09:24:20 USER 101
35.21MB 2024-10-14 09:24:20 RUN |2 UID=101 GID=101 /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
0.00B 2024-10-14 09:24:20 USER root
0.00B 2024-10-14 09:24:20 ARG GID=101
0.00B 2024-10-14 09:24:20 ARG UID=101
0.00B 2024-10-14 09:24:20 ENV NJS_RELEASE=1
0.00B 2024-10-14 09:24:20 ENV NJS_VERSION=0.8.6
0.00B 2024-10-14 08:22:16 CMD ["nginx" "-g" "daemon off;"]
0.00B 2024-10-14 08:22:16 USER 101
0.00B 2024-10-14 08:22:16 STOPSIGNAL SIGQUIT
0.00B 2024-10-14 08:22:16 EXPOSE map[8080/tcp:{}]
0.00B 2024-10-14 08:22:16 ENTRYPOINT ["/docker-entrypoint.sh"]
4.62KB 2024-10-14 08:22:16 COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
3.01KB 2024-10-14 08:22:16 COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
389.00B 2024-10-14 08:22:16 COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
2.13KB 2024-10-14 08:22:16 COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
1.62KB 2024-10-14 08:22:16 COPY docker-entrypoint.sh / # buildkit
10.65KB 2024-10-14 08:22:16 RUN |2 UID=101 GID=101 /bin/sh -c sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.conf && sed -i '/user nginx;/d' /etc/nginx/nginx.conf && sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf && sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf && chown -R $UID:0 /var/cache/nginx && chmod -R g+w /var/cache/nginx && chown -R $UID:0 /etc/nginx && chmod -R g+w /etc/nginx # buildkit
3.99MB 2024-10-14 08:22:16 RUN |2 UID=101 GID=101 /bin/sh -c set -x && addgroup -g $GID -S nginx || true && adduser -S -D -H -u $UID -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx || true && 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
0.00B 2024-10-14 08:22:16 ARG GID=101
0.00B 2024-10-14 08:22:16 ARG UID=101
0.00B 2024-10-14 08:22:16 ENV DYNPKG_RELEASE=1
0.00B 2024-10-14 08:22:16 ENV PKG_RELEASE=1
0.00B 2024-10-14 08:22:16 ENV NGINX_VERSION=1.27.2
0.00B 2024-10-14 08:22:16 LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
0.00B 2024-09-07 06:20:07 /bin/sh -c #(nop) CMD ["/bin/sh"]
7.80MB 2024-09-07 06:20:07 /bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /

镜像信息

{
    "Id": "sha256:5b7e2ee8c78d7a7d8410785cb72824a01e52605d2c15b38d0f8da54c8a0ce975",
    "RepoTags": [
        "nginxinc/nginx-unprivileged:1.27-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.27-alpine"
    ],
    "RepoDigests": [
        "nginxinc/nginx-unprivileged@sha256:3377b22632f51119f888919903f0e90bd4d921cef72d2fdd72600b087f783e3e",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged@sha256:ce8ea2f4879d11736fe5d12a966a5f03a79cec063b67a6915d278891a155e762"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-14T01:24:20.523389378Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "101",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8080/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",
            "org.opencontainers.image.created": "2024-10-14T01:24:08.333Z",
            "org.opencontainers.image.description": "Unprivileged NGINX Dockerfiles",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "d9fe8c8d56c75ce05645873adf7f44ec27bd03e9",
            "org.opencontainers.image.source": "https://github.com/nginxinc/docker-nginx-unprivileged",
            "org.opencontainers.image.title": "docker-nginx-unprivileged",
            "org.opencontainers.image.url": "https://github.com/nginxinc/docker-nginx-unprivileged",
            "org.opencontainers.image.version": "1.27.2-alpine"
        },
        "StopSignal": "SIGQUIT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 47015507,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7aa635fc7a99f14490e43bd667ef99de779844f6ec70aa5ce8f9506d73b1db42/diff:/var/lib/docker/overlay2/a26f50484f4526338f2a1d2279aca786d92403b9b015acc92a3160c8e50e58c1/diff:/var/lib/docker/overlay2/3ce0bde5468cab707ef1eedddd4e5734a7ba15a64106bb14b9d06e9594ea0eeb/diff:/var/lib/docker/overlay2/ea59ad11bcaaee9eff9066e49cd47bc95139ea3883c8bc9ca3816deec7583fd8/diff:/var/lib/docker/overlay2/e17193714354c2dcc3fe4b56b7691d6bcca1c481ac807d00134c6ddad6eadd47/diff:/var/lib/docker/overlay2/28d5b8ec6378b86a11438b07b8a65257b12bdafc785c78ef1edd1e0a41660d57/diff:/var/lib/docker/overlay2/c183f0a16ee635e73b01440bea1581d01605cf0ee34fc44a6c8855c874e79ad0/diff:/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/64b2690089679bb80dabcc79d2c1ea1f452d6929c0a6af925866e5beefb6da92/merged",
            "UpperDir": "/var/lib/docker/overlay2/64b2690089679bb80dabcc79d2c1ea1f452d6929c0a6af925866e5beefb6da92/diff",
            "WorkDir": "/var/lib/docker/overlay2/64b2690089679bb80dabcc79d2c1ea1f452d6929c0a6af925866e5beefb6da92/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:424a9ec80440dcf24b6d9db70966aca023d3cda5af5d14906f3ea6392a44efcf",
            "sha256:5c3059092c17968af27f77f82b667fc87b9eb813c66dae84bb013629558222f9",
            "sha256:af620b45b7954041e88e777a65675899f852cd58cadcc1e5d289b1da90d41d44",
            "sha256:2a8923eb4c709481b4988248a020c431e404013e34621ad177358e5648a64e15",
            "sha256:89759bad3c64a90f84bb0c0f549efe32a311dff30b98f0b74f1cadbae316c902",
            "sha256:a2400fb3c5acd553751388b85566161fc8047b4771e93a78457870d570d88ae7",
            "sha256:265253104bf16b98b04138107c4f5663f7011434725a076f1466b1aa4a859224",
            "sha256:3e14735cdc3418773e540ec753d7ccb04db0a9ea8e711740a8a8ab4bc2023e58"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-18T22:04:40.248186207+08:00"
    }
}

更多版本

docker.io/nginxinc/nginx-unprivileged:1.27-alpine

linux/amd64 docker.io47.02MB2024-10-18 22:04
592

docker.io/nginxinc/nginx-unprivileged:1.25-alpine

linux/amd64 docker.io48.32MB2024-10-22 17:25
247