docker.io/library/nginx:alpine linux/amd64

docker.io/library/nginx:alpine - 国内下载镜像源 浏览次数:17 安全受验证的发布者-Docker
NGINX 是一款流行的开源 web 服务器软件。 Docker 镜像 library/nginx 基于 Ubuntu 发行版,提供了 NGINX 的最新版本。该镜像可以用来部署 web 应用程序、反向代理和负载均衡等。
源镜像 docker.io/library/nginx:alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/nginx:alpine
镜像ID sha256:93f9c72967dbcfaffe724ae5ba471e9568c9bbe67271f53266c84f3c83a409e3
镜像TAG alpine
大小 47.05MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD nginx -g daemon off;
启动入口 /docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 17 次
贡献者
镜像创建 2024-11-26T18:42:08Z
同步时间 2025-01-14 12:12
更新时间 2025-01-16 20:36
开放端口
80/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NGINX_VERSION=1.27.3 PKG_RELEASE=1 DYNPKG_RELEASE=1 NJS_VERSION=0.8.7 NJS_RELEASE=1
镜像标签
NGINX Docker Maintainers <docker-maint@nginx.com>: maintainer

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2021-12-30 02:46:33  0.00B 
/bin/sh -c #(nop)  CMD ["nginx" "-g" "daemon off;"]
                        
# 2021-12-30 02:46:32  0.00B 
/bin/sh -c #(nop)  STOPSIGNAL SIGQUIT
                        
# 2021-12-30 02:46:31  0.00B 
/bin/sh -c #(nop)  EXPOSE 80
                        
# 2021-12-30 02:46:30  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["/docker-entrypoint.sh"]
                        
# 2021-12-30 02:46:30  4.61KB 
/bin/sh -c #(nop) COPY file:09a214a3e07c919af2fb2d7c749ccbc446b8c10eb217366e5a65640ee9edcc25 in /docker-entrypoint.d 
                        
# 2021-12-30 02:46:29  1.04KB 
/bin/sh -c #(nop) COPY file:0fd5fca330dcd6a7de297435e32af634f29f7132ed0550d342cad9fd20158258 in /docker-entrypoint.d 
                        
# 2021-12-30 02:46:28  1.96KB 
/bin/sh -c #(nop) COPY file:0b866ff3fc1ef5b03c4e6c8c513ae014f691fb05d530257dfffd07035c1b75da in /docker-entrypoint.d 
                        
# 2021-12-30 02:46:27  1.20KB 
/bin/sh -c #(nop) COPY file:65504f71f5855ca017fb64d502ce873a31b2e0decd75297a8fb0a287f97acf92 in / 
                        
# 2021-12-30 02:46:25  16.72MB 
/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}         nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE}         nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE}         nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE}         nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${PKG_RELEASE}     "     && apk add --no-cache --virtual .checksum-deps         openssl     && case "$apkArch" in         x86_64|aarch64)             set -x             && KEY_SHA512="e7fa8303923d9b95db37a77ad46c68fd4755ff935d0a534d26eba83de193c76166c68bfe7f65471bf8881004ef4aa6df3e34689c305662750c0172fca5d8552a *stdin"             && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub             && if [ "$(openssl rsa -pubin -in /tmp/nginx_signing.rsa.pub -text -noout | openssl sha512 -r)" = "$KEY_SHA512" ]; 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                 libxslt-dev                 gd-dev                 geoip-dev                 perl-dev                 libedit-dev                 bash                 alpine-sdk                 findutils             && su nobody -s /bin/sh -c "                 export HOME=${tempDir}                 && cd ${tempDir}                 && curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz                 && PKGOSSCHECKSUM=\"b0ed109a820a2e8921f313d653032b8e70d3020138d634039ebb9194dc3968493f6eb4d85bdbf18d2aea7229deddb98ca0f1d9825defcc5af45f68ee37845232 *${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 all                 && apk index -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 .build-deps             && apk add -X ${tempDir}/packages/alpine/ --no-cache $nginxPackages             ;;     esac     && apk del .checksum-deps     && if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi     && if [ -n "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi     && if [ -n "/etc/apk/keys/nginx_signing.rsa.pub" ]; then rm -f /etc/apk/keys/nginx_signing.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 .gettext     && mv /tmp/envsubst /usr/local/bin/     && apk add --no-cache tzdata     && apk add --no-cache curl ca-certificates     && ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && mkdir /docker-entrypoint.d
                        
# 2021-12-30 02:46:17  0.00B 
/bin/sh -c #(nop)  ENV PKG_RELEASE=1
                        
# 2021-12-30 02:46:16  0.00B 
/bin/sh -c #(nop)  ENV NJS_VERSION=0.7.1
                        
# 2021-12-30 02:46:15  0.00B 
/bin/sh -c #(nop)  ENV NGINX_VERSION=1.21.5
                        
# 2021-12-30 02:46:14  0.00B 
/bin/sh -c #(nop)  LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
                        
# 2021-11-25 04:39:20  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2021-11-25 04:39:20  5.33MB 
/bin/sh -c #(nop) ADD file:df53811312284306901fdaaff0a357a4bf40d631e662fe9ce6d342442e494b6c in / 
                        
                    

镜像信息

{
    "Id": "sha256:93f9c72967dbcfaffe724ae5ba471e9568c9bbe67271f53266c84f3c83a409e3",
    "RepoTags": [
        "nginx:alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/nginx:alpine"
    ],
    "RepoDigests": [
        "nginx@sha256:814a8e88df978ade80e584cc5b333144b9372a8e3c98872d07137dbf3b44d0e4",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/nginx@sha256:ad410b95f177bbfb6693662c031eee92e59c3932c2c55c45cf3032cf6ee193d5"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-11-26T18:42:08Z",
    "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.3",
            "PKG_RELEASE=1",
            "DYNPKG_RELEASE=1",
            "NJS_VERSION=0.8.7",
            "NJS_RELEASE=1"
        ],
        "Cmd": [
            "nginx",
            "-g",
            "daemon off;"
        ],
        "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": 47048255,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b4fac55ac4a37f7cc52399496a2fc7ff77c5a51cfa92d182e9d3b12a50914727/diff:/var/lib/docker/overlay2/5e479b236cac9c03a194d4aa68f7ddc1ae3a81b73b9be08367ae474435fa7ca0/diff:/var/lib/docker/overlay2/a8f2630a684a3fea857d14d16c4bb5f04b7461f6a710cbf95d89280e921232eb/diff:/var/lib/docker/overlay2/9854d5653b2ddf1f7a3fdcda23cb920c591ce3ff109f63de63c63843b4e90ff8/diff:/var/lib/docker/overlay2/3e912366da7576f1e3b470c5ae8e5220bac8c3331de862db6b8041ac4a653c7f/diff:/var/lib/docker/overlay2/5f83ab708b8efbb0000b4bfa0beb2a6914837a81fa73654a55956646fb7d64cf/diff:/var/lib/docker/overlay2/16aa5373a8f5ca93bcb4279484876dbb3bbbc9a36a9d57046e4c9b7eb50980fc/diff",
            "MergedDir": "/var/lib/docker/overlay2/a1cd9e07adbdcb10b614bd2712e57c2cde12aa2f4a834029d93eb3865cd985e3/merged",
            "UpperDir": "/var/lib/docker/overlay2/a1cd9e07adbdcb10b614bd2712e57c2cde12aa2f4a834029d93eb3865cd985e3/diff",
            "WorkDir": "/var/lib/docker/overlay2/a1cd9e07adbdcb10b614bd2712e57c2cde12aa2f4a834029d93eb3865cd985e3/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:ce5a8cde9eeef09160653b9c3d14f0c1c0e2900033476a5f2a9fc950161c0eb2",
            "sha256:a8903c9578e96e9b12e1c95bc063a17121501fd3d4eb86d93153b9e0030cb64f",
            "sha256:fd5f65a144eff5b0b6d81873afab888eb3e542810ee99405c737a78f3f78a510",
            "sha256:598e577f3a2384aa74182a192a710eabf7c61b0d8283f0f2737e40b9d4083683",
            "sha256:59a5cb944b91cd9f63a76f3878813b00266e4fe720886dfb8c1127cc4fb876ea",
            "sha256:9aa22afcf27f93024385cc52c6618f7ea2d01d871a9da2d98785acf54ca1f311",
            "sha256:23625999797d3a120bc0d83b859e7d1ec8d9b6939103fe4bfa35bcda08bde20a",
            "sha256:5a760029e979b26ccc3120770832af64f1a0f6c9f3735bafc98e512607485b63"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-14T12:12:06.255853733+08:00"
    }
}

更多版本

docker.io/library/nginx:alpine

linux/arm64 docker.io22.06MB2024-06-27 09:17
528

docker.io/library/nginx:stable-perl

linux/arm64 docker.io243.02MB2024-06-27 10:46
231

docker.io/library/nginx:1.27

linux/amd64 docker.io187.67MB2024-06-27 13:45
486

docker.io/library/nginx:1.23.2

linux/amd64 docker.io141.77MB2024-07-19 13:43
542

docker.io/library/nginx:1.25.2-alpine

linux/amd64 docker.io42.60MB2024-08-12 08:35
280

docker.io/library/nginx:1.25

linux/amd64 docker.io187.66MB2024-09-02 16:40
201

docker.io/library/nginx:1.16.0-alpine

linux/amd64 docker.io20.42MB2024-09-06 13:54
171

docker.io/library/nginx:latest

linux/amd64 docker.io187.71MB2024-09-11 18:56
401

docker.io/library/nginx:1.27.1-alpine

linux/amd64 docker.io43.24MB2024-09-13 16:46
163

docker.io/library/nginx:1.26.2-alpine

linux/amd64 docker.io43.24MB2024-09-14 10:18
225

docker.io/library/nginx:stable-alpine

linux/amd64 docker.io43.24MB2024-10-05 02:38
214

docker.io/library/nginx:1.17.6

linux/amd64 docker.io126.32MB2024-10-23 17:34
118

docker.io/library/nginx:1.25.3

linux/amd64 docker.io186.73MB2024-10-24 10:30
133

docker.io/library/nginx:1.26-alpine

linux/amd64 docker.io43.24MB2024-10-30 15:07
112

docker.io/library/nginx:1.26.1-alpine3.19-slim

linux/amd64 docker.io12.01MB2024-11-04 11:17
89

docker.io/library/nginx:1.27.2

linux/amd64 docker.io191.67MB2024-11-07 15:01
139

docker.io/library/nginx:1.18.0-alpine

linux/amd64 docker.io21.86MB2024-11-12 10:28
90

docker.io/library/nginx:1.25.5-perl

linux/amd64 docker.io235.67MB2024-11-17 12:38
66

docker.io/library/nginx:1.26.1

linux/amd64 docker.io187.60MB2024-12-05 17:18
60

docker.io/library/nginx:stable-alpine3.17-slim

linux/amd64 docker.io11.52MB2024-12-26 18:06
52

docker.io/library/nginx:alpine

linux/amd64 docker.io47.05MB2025-01-14 12:12
16