docker.io/library/node:18 linux/amd64

docker.io/library/node:18 - 国内下载镜像源 浏览次数:212 安全受验证的发布者-Docker
🏗️

Node.js 是一个用于JavaScript脚本语言的运行环境,可以在服务器上运行、可以与操作系统集成和交互。 Node.js 可以用来开发各种类型的应用程序,如 Web 应用程序、命令行工具、桌面应用程序等。

源镜像 docker.io/library/node:18
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/node:18
镜像ID sha256:b92b80169bfdc61499e68528add3a7858aa4b704fb4d4e1aa4f5a32a0dc78671
镜像TAG 18
大小 1.09GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD node
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 212 次
贡献者
镜像创建 2024-07-09T05:33:43Z
同步时间 2024-09-26 17:28
更新时间 2025-01-29 14:55
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_VERSION=18.20.4 YARN_VERSION=1.22.19
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-10-27 05:19

低危漏洞:518 中危漏洞:683 高危漏洞:187 严重漏洞:13

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-07-09 13:33:43  0.00B 设置默认要执行的命令
CMD ["node"]
                        
# 2024-07-09 13:33:43  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-07-09 13:33:43  388.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-07-09 13:33:43  5.33MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex   && export GNUPGHOME="$(mktemp -d)"   && for key in     6A010C5166006599AA17F08146C2130DFD2497F5   ; do     gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ||     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ;   done   && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz"   && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc"   && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz   && gpgconf --kill all   && rm -rf "$GNUPGHOME"   && mkdir -p /opt   && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/   && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn   && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg   && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz   && yarn --version   && rm -rf /tmp/* # buildkit
                        
# 2024-07-09 13:33:43  0.00B 设置环境变量 YARN_VERSION
ENV YARN_VERSION=1.22.19
                        
# 2024-07-09 13:33:43  154.02MB 执行命令并创建新的镜像层
RUN /bin/sh -c ARCH= && dpkgArch="$(dpkg --print-architecture)"   && case "${dpkgArch##*-}" in     amd64) ARCH='x64';;     ppc64el) ARCH='ppc64le';;     s390x) ARCH='s390x';;     arm64) ARCH='arm64';;     armhf) ARCH='armv7l';;     i386) ARCH='x86';;     *) echo "unsupported architecture"; exit 1 ;;   esac   && export GNUPGHOME="$(mktemp -d)"   && set -ex   && for key in     4ED778F539E3634C779C87C6D7062848A1AB005C     141F07595B7B3FFE74309A937405533BE57C7D57     74F12602B6F1C4E913FAA37AD3A89613643B6201     DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7     61FC681DFB92A079F1685E77973F295594EC4689     8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600     C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8     890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4     C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C     108F52B48DB57BB0CC439B2997B01419BD92F80A     A363A499291CBBC940DD62E41F10027AF002F8B0     CC68F5A3106FF448322E48ED27F5E38D5B0A215F   ; do       gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ||       gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ;   done   && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz"   && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc"   && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc   && gpgconf --kill all   && rm -rf "$GNUPGHOME"   && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c -   && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner   && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt   && ln -s /usr/local/bin/node /usr/local/bin/nodejs   && node --version   && npm --version # buildkit
                        
# 2024-07-09 13:33:43  0.00B 设置环境变量 NODE_VERSION
ENV NODE_VERSION=18.20.4
                        
# 2024-07-09 13:33:43  8.94KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd --gid 1000 node   && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
                        
# 2024-07-09 13:33:43  587.49MB 
/bin/sh -c set -ex; 	apt-get update; 	apt-get install -y --no-install-recommends 		autoconf 		automake 		bzip2 		default-libmysqlclient-dev 		dpkg-dev 		file 		g++ 		gcc 		imagemagick 		libbz2-dev 		libc6-dev 		libcurl4-openssl-dev 		libdb-dev 		libevent-dev 		libffi-dev 		libgdbm-dev 		libglib2.0-dev 		libgmp-dev 		libjpeg-dev 		libkrb5-dev 		liblzma-dev 		libmagickcore-dev 		libmagickwand-dev 		libmaxminddb-dev 		libncurses5-dev 		libncursesw5-dev 		libpng-dev 		libpq-dev 		libreadline-dev 		libsqlite3-dev 		libssl-dev 		libtool 		libwebp-dev 		libxml2-dev 		libxslt-dev 		libyaml-dev 		make 		patch 		unzip 		xz-utils 		zlib1g-dev 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2024-07-09 13:33:43  176.70MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		git 		mercurial 		openssh-client 		subversion 				procps 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2024-07-09 13:33:43  48.45MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		sq 		wget 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2024-07-09 13:33:43  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-07-09 13:33:43  116.51MB 
/bin/sh -c #(nop) ADD file:1129dcf71f67461f4730620f8148cc9ebc7641966fa683cdf84807219ad288b2 in / 
                        
                    

镜像信息

{
    "Id": "sha256:b92b80169bfdc61499e68528add3a7858aa4b704fb4d4e1aa4f5a32a0dc78671",
    "RepoTags": [
        "node:18",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/node:18"
    ],
    "RepoDigests": [
        "node@sha256:ca07c02d13baf021ff5aadb3b48bcd1fcdd454826266ac313ce858676e8c1548",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/node@sha256:ab6a0c840c4f3db494ab1620c81fee5af0e3363c740cd2f824f39e6eb14da763"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-09T05:33:43Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NODE_VERSION=18.20.4",
            "YARN_VERSION=1.22.19"
        ],
        "Cmd": [
            "node"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1088507647,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1659f659020678dd0e10c4094d8420714932cb31c43eebd155056f46f51b89e6/diff:/var/lib/docker/overlay2/4a5bd6b32d773db677d62db13b31b7f73550141812cdf5eb85e9d72ea09414b4/diff:/var/lib/docker/overlay2/98d74531ae6bb1fb2a911e604ed9591964c5d58ed1ee48fa00f1e1429cb3818b/diff:/var/lib/docker/overlay2/9a3bea28bb1aa5ee45f9856ccf2c28756a616a08d75feddad74807699629e504/diff:/var/lib/docker/overlay2/ce893752e8ce2850e08d68eef36d0c3cdc106431d062e241f0d1ab99a986c26d/diff:/var/lib/docker/overlay2/d39643ad4979dfd4df01916d12da76f42015bc18a6f8d16c867ff8d275f52553/diff:/var/lib/docker/overlay2/1868cecc33a8b3a559fa342c1e2190d93d723012adcabe0262930bf7cc3bd444/diff",
            "MergedDir": "/var/lib/docker/overlay2/1511157e0e8166b6a1a997cf8bb7ba8f42d72f8c526ab595171832a941aafe82/merged",
            "UpperDir": "/var/lib/docker/overlay2/1511157e0e8166b6a1a997cf8bb7ba8f42d72f8c526ab595171832a941aafe82/diff",
            "WorkDir": "/var/lib/docker/overlay2/1511157e0e8166b6a1a997cf8bb7ba8f42d72f8c526ab595171832a941aafe82/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:6abe10f2f60150ae9768e117986e4f8af5546137221553228eb5d21066f596b4",
            "sha256:25879f85bbb0206e6870e7073a576acd49be6e8c3a15ba4b443166f92b041327",
            "sha256:045d8b74bf0ddedb671bd1ba1ab114e3a3e7b86dc5c7e18f9b7edda74193174d",
            "sha256:3a8081ce85fac02e6d87b062aff5ace4027e2409de4a65a1844308b6510068cf",
            "sha256:f01b92da0c999dd4b3ea2ba6ec40c4d5dfb853394d96ede6fc34662566ce4bec",
            "sha256:a7ac41fc641234517601aa42bb9bce85e079ec7cdd2477cd3a42b8f615c46e1a",
            "sha256:34207049200ea169afa007502c081d6d97b8a378229a111e105433dc9995b8b3",
            "sha256:e3f4e408061ce6c3b95d273d2edeadcfa18d655440642c14d1c9d6211e5b4959"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-09-26T17:28:47.459760688+08:00"
    }
}

更多版本

docker.io/library/node:12-alpine

linux/amd64 docker.io91.01MB2024-07-05 10:57
265

docker.io/library/node:12-alpine

linux/arm64 docker.io89.43MB2024-07-05 10:57
344

docker.io/library/node:20.14.0-alpine

linux/amd64 docker.io132.91MB2024-07-16 09:21
276

docker.io/library/node:alpine

linux/amd64 docker.io150.61MB2024-07-16 10:17
440

docker.io/library/node:20-alpine

linux/amd64 docker.io133.14MB2024-07-30 23:42
578

docker.io/library/node:16

linux/amd64 docker.io908.82MB2024-07-31 14:14
391

docker.io/library/node:8

linux/amd64 docker.io901.21MB2024-08-07 13:37
220

docker.io/library/node:12

linux/amd64 docker.io917.81MB2024-08-07 13:40
259

docker.io/library/node:14

linux/amd64 docker.io911.75MB2024-08-07 13:43
357

docker.io/library/node:20

linux/amd64 docker.io1.10GB2024-08-07 13:43
365

docker.io/library/node:6

linux/amd64 docker.io884.32MB2024-08-30 09:27
163

docker.io/library/node:18.20.4

linux/amd64 docker.io1.09GB2024-08-31 15:10
265

docker.io/library/node:18

linux/amd64 docker.io1.09GB2024-09-26 17:28
211

docker.io/library/node:20.6.0-alpine

linux/amd64 docker.io180.99MB2024-10-03 02:26
148

docker.io/library/node:20.15.1-alpine

linux/amd64 docker.io132.95MB2024-10-12 10:49
127

docker.io/library/node:20-bullseye-slim

linux/amd64 docker.io205.61MB2024-10-12 12:56
240

docker.io/library/node:14-alpine

linux/amd64 docker.io119.31MB2024-10-18 05:00
167

docker.io/library/node:22.9.0

linux/amd64 docker.io1.11GB2024-10-21 20:53
182

docker.io/library/node:lts-slim

linux/amd64 docker.io219.76MB2024-11-04 11:15
126

docker.io/library/node:14.21.3

linux/amd64 docker.io911.75MB2024-11-07 11:04
82

docker.io/library/node:22.11.0-alpine3.20

linux/amd64 docker.io155.13MB2024-11-20 18:21
108

docker.io/library/node:18.20.4

linux/arm64 docker.io1.09GB2024-11-24 17:02
88

docker.io/library/node:22-alpine3.19

linux/amd64 docker.io154.73MB2024-11-24 20:24
116

docker.io/library/node:18.11.0

linux/amd64 docker.io991.29MB2024-12-24 14:14
56

docker.io/library/node:18.18.0

linux/amd64 docker.io1.09GB2024-12-24 14:15
73

docker.io/library/node:20.9.0-bookworm

linux/amd64 docker.io1.10GB2025-01-02 19:24
63

docker.io/library/node:20.9.0-bookworm

linux/arm64 docker.io1.10GB2025-01-02 19:26
46

docker.io/library/node:20.9.0-bookworm-slim

linux/amd64 docker.io200.89MB2025-01-03 10:54
66

docker.io/library/node:20.9.0-bookworm-slim

linux/arm64 docker.io222.79MB2025-01-03 10:54
43

docker.io/library/node:18-slim

linux/amd64 docker.io192.10MB2025-01-12 19:44
43

docker.io/library/node:20.18.0-alpine

linux/amd64 docker.io132.84MB2025-01-12 19:45
43

docker.io/library/node:22.13.0-alpine3.21

linux/amd64 docker.io157.71MB2025-01-14 11:49
48

docker.io/library/node:23.3.0-alpine

linux/amd64 docker.io160.26MB2025-01-22 15:26
39