docker.io/nginx:latest linux/amd64

docker.io/nginx:latest - 国内下载镜像源 浏览次数:2445

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

nginx镜像用于运行Nginx Web 服务器。
源镜像 docker.io/nginx:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:latest
镜像ID sha256:5ef79149e0ec84a7a9f9284c3f91aa3c20608f8391f5445eabe92ef07dbda03c
镜像TAG latest
大小 187.69MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD nginx -g daemon off;
启动入口 /docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 2445 次
贡献者
镜像创建 2024-08-14T21:31:12Z
同步时间 2024-08-25 17:25
更新时间 2025-01-18 00:38
开放端口
80/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NGINX_VERSION=1.27.1 NJS_VERSION=0.8.5 NJS_RELEASE=1~bookworm PKG_RELEASE=1~bookworm DYNPKG_RELEASE=2~bookworm
镜像标签
NGINX Docker Maintainers <docker-maint@nginx.com>: maintainer

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-08-15 05:31:12  0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
                        
# 2024-08-15 05:31:12  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
                        
# 2024-08-15 05:31:12  0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
                        
# 2024-08-15 05:31:12  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
                        
# 2024-08-15 05:31:12  4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
                        
# 2024-08-15 05:31:12  3.02KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
                        
# 2024-08-15 05:31:12  336.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
                        
# 2024-08-15 05:31:12  2.12KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
                        
# 2024-08-15 05:31:12  1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
                        
# 2024-08-15 05:31:12  112.91MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -x     && groupadd --system --gid 101 nginx     && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx     && apt-get update     && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates     &&     NGINX_GPGKEYS="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 8540A6F18833A80E9C1653A42FD21310B49F6B46 9E9BE90EACBCDE69FE9B204CBCDCD8A38D88A2B3";     NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg;     export GNUPGHOME="$(mktemp -d)";     found='';     for NGINX_GPGKEY in $NGINX_GPGKEYS; do     for server in         hkp://keyserver.ubuntu.com:80         pgp.mit.edu     ; do         echo "Fetching GPG key $NGINX_GPGKEY from $server";         gpg1 --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break;     done;     test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1;     done;     gpg1 --export "$NGINX_GPGKEYS" > "$NGINX_GPGKEY_PATH" ;     rm -rf "$GNUPGHOME";     apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/*     && dpkgArch="$(dpkg --print-architecture)"     && nginxPackages="         nginx=${NGINX_VERSION}-${PKG_RELEASE}         nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE}         nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE}         nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE}         nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE}     "     && case "$dpkgArch" in         amd64|arm64)             echo "deb [signed-by=$NGINX_GPGKEY_PATH] https://nginx.org/packages/mainline/debian/ bookworm nginx" >> /etc/apt/sources.list.d/nginx.list             && apt-get update             ;;         *)             echo "deb-src [signed-by=$NGINX_GPGKEY_PATH] https://nginx.org/packages/mainline/debian/ bookworm nginx" >> /etc/apt/sources.list.d/nginx.list                         && tempDir="$(mktemp -d)"             && chmod 777 "$tempDir"                         && savedAptMark="$(apt-mark showmanual)"                         && apt-get update             && apt-get build-dep -y $nginxPackages             && (                 cd "$tempDir"                 && DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)"                     apt-get source --compile $nginxPackages             )                         && apt-mark showmanual | xargs apt-mark auto > /dev/null             && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; }                         && ls -lAFh "$tempDir"             && ( cd "$tempDir" && dpkg-scanpackages . > Packages )             && grep '^Package: ' "$tempDir/Packages"             && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list             && apt-get -o Acquire::GzipIndexes=false update             ;;     esac         && apt-get install --no-install-recommends --no-install-suggests -y                         $nginxPackages                         gettext-base                         curl     && apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list         && if [ -n "$tempDir" ]; then         apt-get purge -y --auto-remove         && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list;     fi     && ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && mkdir /docker-entrypoint.d # buildkit
                        
# 2024-08-15 05:31:12  0.00B 设置环境变量 DYNPKG_RELEASE
ENV DYNPKG_RELEASE=2~bookworm
                        
# 2024-08-15 05:31:12  0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1~bookworm
                        
# 2024-08-15 05:31:12  0.00B 设置环境变量 NJS_RELEASE
ENV NJS_RELEASE=1~bookworm
                        
# 2024-08-15 05:31:12  0.00B 设置环境变量 NJS_VERSION
ENV NJS_VERSION=0.8.5
                        
# 2024-08-15 05:31:12  0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.27.1
                        
# 2024-08-15 05:31:12  0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
                        
# 2024-08-13 08:20:20  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-08-13 08:20:20  74.78MB 
/bin/sh -c #(nop) ADD file:3d9897cfe027ecc7cbdb16e74a676ed143725ea2d08dbb0dde23309e041de0f3 in / 
                        
                    

镜像信息

{
    "Id": "sha256:5ef79149e0ec84a7a9f9284c3f91aa3c20608f8391f5445eabe92ef07dbda03c",
    "RepoTags": [
        "nginx:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:latest"
    ],
    "RepoDigests": [
        "nginx@sha256:447a8665cc1dab95b1ca778e162215839ccbb9189104c79d7ec3a81e14577add",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx@sha256:127262f8c4c716652d0e7863bba3b8c45bc9214a57d13786c854272102f7c945"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-14T21:31:12Z",
    "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.1",
            "NJS_VERSION=0.8.5",
            "NJS_RELEASE=1~bookworm",
            "PKG_RELEASE=1~bookworm",
            "DYNPKG_RELEASE=2~bookworm"
        ],
        "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": 187694648,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/4f45580e2c1bf8e76644cea9eaa07be040c9b68c59405b51eeb74a4cf41c9a91/diff:/var/lib/docker/overlay2/e6deb66bf6cacbb13ce7aba76e6f811c6c8ab1d91d7db521d017a9cbee1d133b/diff:/var/lib/docker/overlay2/f0c4b347d0c97387bc01dcc336b558bb5b608486428a1246e1a3edf9f16c50b9/diff:/var/lib/docker/overlay2/227e23f360dd44ad417c274c4ddad776db990638b51d5967a754696244741339/diff:/var/lib/docker/overlay2/73a14529b7919e948e365f2082bdec8a5c499a3929a6e6da463ed2f721b170ce/diff:/var/lib/docker/overlay2/28a24a5fb6be65d3d873aa33e83fc3cf74c5335993229b3bd346b9f5da4a3773/diff",
            "MergedDir": "/var/lib/docker/overlay2/22d5aecbc2d1eef92bdb8c8e42f88fe4e30bb96056c22864f4866a961cdd966f/merged",
            "UpperDir": "/var/lib/docker/overlay2/22d5aecbc2d1eef92bdb8c8e42f88fe4e30bb96056c22864f4866a961cdd966f/diff",
            "WorkDir": "/var/lib/docker/overlay2/22d5aecbc2d1eef92bdb8c8e42f88fe4e30bb96056c22864f4866a961cdd966f/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9853575bc4f955c5892dd64187538a6cd02dba6968eba9201854876a7a257034",
            "sha256:72db5db515fdd9ae82b759fc207fdfbcc31567c28bb87950abc94ce1d60b2d40",
            "sha256:8b87c0c6652495401acfbe029ede84a5f327664770561ba5f8b7fe9149f52dd0",
            "sha256:ec1a2ca4ac8784def146544fc7068db06a188d2da4fd7c4e134a76415b8bc1a8",
            "sha256:55e54df86207fa772302a6fc1e78eb60bd7e3ebd4f913ef7f5ad668ad69ab64d",
            "sha256:f4f00eaedec7933a48b09f3948c685c41d55f0bf5906295dd022c05b65082344",
            "sha256:5f0272c6e96d5cd8ea1c6507cfce81980d4b99322bd037d99250a79d4c0b9f1a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-08-25T17:24:41.572597165+08:00"
    }
}

更多版本

docker.io/nginx:mainline-alpine3.18-perl

linux/amd64 docker.io78.10MB2024-03-11 14:24
677

docker.io/nginx:alpine3.18-perl

linux/amd64 docker.io78.10MB2024-03-11 14:24
770

docker.io/nginx:1.27

linux/amd64 docker.io187.64MB2024-06-14 16:00
826

docker.io/nginx:1.27.0

linux/amd64 docker.io187.64MB2024-06-14 16:05
4273

docker.io/nginx:alpine

linux/amd64 docker.io48.31MB2024-06-19 13:46
703

docker.io/nginx:1.26.1-alpine

linux/amd64 docker.io48.31MB2024-06-19 15:44
1571

docker.io/nginx:stable

linux/amd64 docker.io187.66MB2024-06-19 16:39
2667

docker.io/nginx:1.25.5-bookworm-perl

linux/amd64 docker.io235.67MB2024-06-28 01:33
338

docker.io/nginx:1.18.0

linux/amd64 docker.io132.90MB2024-06-29 17:58
444

docker.io/nginx:stable

linux/arm64 docker.io193.00MB2024-07-08 15:35
1453

docker.io/nginx:1.21

linux/amd64 docker.io141.53MB2024-07-11 14:19
1008

docker.io/nginx:1.26.1-alpine-slim

linux/amd64 docker.io12.01MB2024-07-16 16:21
707

docker.io/nginx:1.26.1-alpine

linux/arm64 docker.io44.84MB2024-07-19 15:23
324

docker.io/nginx:alpine

linux/arm64 docker.io44.84MB2024-07-19 20:39
582

docker.io/nginx:1.20.2-alpine

linux/amd64 docker.io23.16MB2024-07-28 09:09
247

docker.io/nginx:1.25.2-alpine

linux/amd64 docker.io42.60MB2024-08-12 08:27
278

docker.io/nginx:1.16

linux/arm64 docker.io120.09MB2024-08-15 14:56
890

docker.io/nginx:latest

linux/amd64 docker.io187.69MB2024-08-25 17:25
2444

docker.io/nginx:1.26.2

linux/amd64 docker.io187.69MB2024-08-27 14:29
686

docker.io/nginx:1.26.1

linux/amd64 docker.io187.60MB2024-08-27 14:31
591

docker.io/nginx:1.25.5

linux/amd64 docker.io187.66MB2024-08-27 14:32
204

docker.io/nginx:1.27.1

linux/amd64 docker.io187.69MB2024-08-27 14:47
627

docker.io/nginx:1.22.1-alpine

linux/amd64 docker.io40.98MB2024-09-02 10:33
257

docker.io/nginx:1.26.2-alpine

linux/amd64 docker.io43.26MB2024-09-02 10:34
235

docker.io/nginx:1.27-alpine-perl

linux/amd64 docker.io80.79MB2024-09-09 19:18
198

docker.io/nginx:1.27.1-alpine

linux/amd64 docker.io43.24MB2024-09-13 16:27
223

docker.io/nginx:1.20.2

linux/amd64 docker.io141.50MB2024-09-14 16:48
286

docker.io/nginx:1.14.1

linux/amd64 docker.io109.08MB2024-09-24 00:17
269

docker.io/nginx:1.27-alpine

linux/amd64 docker.io43.24MB2024-09-26 17:25
193

docker.io/nginx:1.23.2

linux/amd64 docker.io141.77MB2024-09-29 17:58
233

docker.io/nginx:1.26.1

linux/arm docker.io135.58MB2024-09-29 18:04
184

docker.io/nginx:1.26.1

linux/arm64 docker.io193.00MB2024-09-29 18:07
203

docker.io/nginx:1.23.2

linux/arm docker.io109.21MB2024-09-29 18:09
177

docker.io/nginx:alpine3.20

linux/amd64 docker.io47.00MB2024-10-15 19:50
330

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

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

docker.io/nginx:1.21.4-alpine

linux/amd64 docker.io23.20MB2024-10-21 17:39
143

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

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

docker.io/nginx:1.24.0

linux/arm64 docker.io135.14MB2024-10-24 17:53
367

docker.io/nginx:1.24.0

linux/amd64 docker.io142.31MB2024-10-25 09:58
416

docker.io/nginx:1.13.0

linux/amd64 docker.io109.39MB2024-10-29 14:03
239

docker.io/nginx:1.27.2-alpine-slim

linux/amd64 docker.io11.79MB2024-10-30 17:48
253

docker.io/nginx:1.27.2-alpine

linux/arm64 docker.io50.84MB2024-10-31 11:33
347

docker.io/nginx:1.27.2

linux/arm64 docker.io196.88MB2024-10-31 11:38
425

docker.io/nginx:1.27.2-perl

linux/amd64 docker.io239.68MB2024-11-04 11:39
103

docker.io/nginx/nginx-ingress:3.3.2

linux/amd64 docker.io302.96MB2024-11-05 19:06
79

docker.io/nginx:1.17.1

linux/amd64 docker.io109.36MB2024-11-18 16:01
74

docker.io/nginx:1.17.2

linux/amd64 docker.io125.85MB2024-11-20 17:53
62

docker.io/nginx:1.17.3

linux/amd64 docker.io125.98MB2024-11-20 17:56
64

docker.io/nginx:1.17.4

linux/amd64 docker.io125.99MB2024-11-20 18:15
62

docker.io/nginx:1.26

linux/amd64 docker.io187.70MB2024-11-22 11:29
66

docker.io/nginx:1.26

linux/arm64 docker.io193.07MB2024-11-22 11:31
67

docker.io/nginx:1.26.2

linux/arm64 docker.io193.07MB2024-11-22 11:59
253

docker.io/nginx:1.21.6

linux/amd64 docker.io141.53MB2024-11-22 15:08
72

docker.io/nginx/nginx-prometheus-exporter:1.3.0

linux/amd64 docker.io12.57MB2024-11-22 16:10
66

docker.io/nginx:1.19.7-alpine

linux/amd64 docker.io22.55MB2024-11-25 11:51
78

docker.io/nginx:1.27.3

linux/amd64 docker.io191.72MB2024-11-27 18:26
249

docker.io/nginx/nginx-ingress:3.7.2-20241201-alpine

linux/amd64 docker.io128.63MB2024-12-03 14:28
58

docker.io/nginx:1.27.3-alpine

linux/amd64 docker.io52.54MB2024-12-06 15:37
96

docker.io/nginx:stable-alpine-perl

linux/amd64 docker.io86.32MB2024-12-08 16:23
98

docker.io/nginx:alpine-slim

linux/arm64 docker.io19.17MB2024-12-18 17:47
62

docker.io/nginx:1.19.2-alpine

linux/amd64 docker.io22.05MB2024-12-19 10:16
66

docker.io/nginx:1.25.2

linux/arm64 docker.io192.07MB2024-12-20 16:50
62

docker.io/nginx:1.25.1

linux/amd64 docker.io186.86MB2024-12-23 09:23
57

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

linux/amd64 docker.io48.78MB2024-12-25 01:01
45

docker.io/nginx/nginx-ingress:3.7.0

linux/amd64 docker.io282.26MB2024-12-27 22:16
47

docker.io/nginx:1.26.0

linux/amd64 docker.io187.66MB2024-12-29 11:11
40

docker.io/nginxinc/nginx-unprivileged:perl

linux/amd64 docker.io239.78MB2024-12-30 23:51
157

docker.io/nginx:latest

linux/arm64 docker.io197.05MB2025-01-03 16:54
63

docker.io/nginx:1.27.0

linux/arm64 docker.io193.00MB2025-01-07 16:50
32

docker.io/nginx:1.22.1-alpine3.17-slim

linux/amd64 docker.io11.49MB2025-01-08 09:37
45