docker.io/library/maven:3.8.5-openjdk-17-slim linux/amd64

docker.io/library/maven:3.8.5-openjdk-17-slim - 国内下载镜像源 浏览次数:312 安全受验证的发布者-Docker

Maven 是 Apache Maven 的官方 Docker 镜像,用于构建和管理 Java 项目。它提供了基本的 Maven 命令行工具和 necessary 依赖项。

源镜像 docker.io/library/maven:3.8.5-openjdk-17-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim
镜像ID sha256:126d58d17617e3ca6c06b33d1532b9375636d6071b7b77bdd187aa149f3c90c4
镜像TAG 3.8.5-openjdk-17-slim
大小 424.15MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn
启动入口 /usr/local/bin/mvn-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 312 次
贡献者
镜像创建 2022-04-21T07:31:35.173580423Z
同步时间 2024-07-22 16:40
更新时间 2025-01-18 02:06
环境变量
PATH=/usr/local/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/local/openjdk-17 LANG=C.UTF-8 JAVA_VERSION=17.0.2 MAVEN_HOME=/usr/share/maven MAVEN_CONFIG=/root/.m2

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim  docker.io/library/maven:3.8.5-openjdk-17-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim  docker.io/library/maven:3.8.5-openjdk-17-slim

Shell快速替换命令

sed -i 's#library/maven:3.8.5-openjdk-17-slim#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim  docker.io/library/maven:3.8.5-openjdk-17-slim'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim  docker.io/library/maven:3.8.5-openjdk-17-slim'

镜像构建历史


# 2022-04-21 15:31:35  0.00B 
/bin/sh -c #(nop)  CMD ["mvn"]
                        
# 2022-04-21 15:31:35  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
                        
# 2022-04-21 15:31:34  327.00B 
/bin/sh -c #(nop) COPY file:2bbb488dd73c55d658b91943cfdf9c26975a320ceafc45dda94c95b03e518ad3 in /usr/share/maven/ref/ 
                        
# 2022-04-21 15:31:34  1.65KB 
/bin/sh -c #(nop) COPY file:1b3da5c58894f705e7387946301c0c52edb6271761ea3cd80b86a848847a64cd in /usr/local/bin/mvn-entrypoint.sh 
                        
# 2022-04-21 15:31:34  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_CONFIG=/root/.m2
                        
# 2022-04-21 15:31:34  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_HOME=/usr/share/maven
                        
# 2022-04-21 15:31:34  10.15MB 
|4 BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.5/binaries MAVEN_VERSION=3.8.5 SHA=89ab8ece99292476447ef6a6800d9842bbb60787b9b8a45c103aa61d2f205a971d8c3ddfb8b03e514455b4173602bd015e82958c0b3ddc1728a57126f773c743 USER_HOME_DIR=/root /bin/sh -c mkdir -p /usr/share/maven /usr/share/maven/ref   && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz   && echo "${SHA}  /tmp/apache-maven.tar.gz" | sha512sum -c -   && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1   && rm -f /tmp/apache-maven.tar.gz   && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
                        
# 2022-04-21 15:31:26  0.00B 
/bin/sh -c #(nop)  ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.5/binaries
                        
# 2022-04-21 15:31:26  0.00B 
/bin/sh -c #(nop)  ARG SHA=89ab8ece99292476447ef6a6800d9842bbb60787b9b8a45c103aa61d2f205a971d8c3ddfb8b03e514455b4173602bd015e82958c0b3ddc1728a57126f773c743
                        
# 2022-04-21 15:31:26  0.00B 
/bin/sh -c #(nop)  ARG USER_HOME_DIR=/root
                        
# 2022-04-21 15:31:26  0.00B 
/bin/sh -c #(nop)  ARG MAVEN_VERSION=3.8.5
                        
# 2022-04-21 15:31:26  6.24MB 
/bin/sh -c apt-get update   && apt-get install -y curl procps   && rm -rf /var/lib/apt/lists/*
                        
# 2022-04-20 18:51:22  0.00B 
/bin/sh -c #(nop)  CMD ["jshell"]
                        
# 2022-04-20 18:51:21  322.46MB 
/bin/sh -c set -eux; 		arch="$(dpkg --print-architecture)"; 	case "$arch" in 		'amd64') 			downloadUrl='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz'; 			downloadSha256='0022753d0cceecacdd3a795dd4cea2bd7ffdf9dc06e22ffd1be98411742fbb44'; 			;; 		'arm64') 			downloadUrl='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-aarch64_bin.tar.gz'; 			downloadSha256='13bfd976acf8803f862e82c7113fb0e9311ca5458b1decaef8a09ffd91119fa4'; 			;; 		*) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; 	esac; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		wget 	; 	rm -rf /var/lib/apt/lists/*; 		wget --progress=dot:giga -O openjdk.tgz "$downloadUrl"; 	echo "$downloadSha256 *openjdk.tgz" | sha256sum --strict --check -; 		mkdir -p "$JAVA_HOME"; 	tar --extract 		--file openjdk.tgz 		--directory "$JAVA_HOME" 		--strip-components 1 		--no-same-owner 	; 	rm openjdk.tgz*; 		apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 		{ 		echo '#!/usr/bin/env bash'; 		echo 'set -Eeuo pipefail'; 		echo 'trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$JAVA_HOME/lib/security/cacerts"'; 	} > /etc/ca-certificates/update.d/docker-openjdk; 	chmod +x /etc/ca-certificates/update.d/docker-openjdk; 	/etc/ca-certificates/update.d/docker-openjdk; 		find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; 	ldconfig; 		java -Xshare:dump; 		fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; 	javac --version; 	java --version
                        
# 2022-04-20 18:51:06  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=17.0.2
                        
# 2022-04-20 18:51:06  0.00B 
/bin/sh -c #(nop)  ENV LANG=C.UTF-8
                        
# 2022-04-20 18:51:06  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2022-04-20 18:51:06  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/local/openjdk-17
                        
# 2022-04-20 18:47:39  4.88MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates p11-kit 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2022-04-20 12:43:27  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2022-04-20 12:43:27  80.41MB 
/bin/sh -c #(nop) ADD file:8b1e79f91081eb527b455431af58e823d8b84d9d0c8e5c47cb7bda7507954ae4 in / 
                        
                    

镜像信息

{
    "Id": "sha256:126d58d17617e3ca6c06b33d1532b9375636d6071b7b77bdd187aa149f3c90c4",
    "RepoTags": [
        "maven:3.8.5-openjdk-17-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven:3.8.5-openjdk-17-slim"
    ],
    "RepoDigests": [
        "maven@sha256:502e781d39f0b40fbd02eb23f5b7663618b76ba52034da218c64e92f6c5647be",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/maven@sha256:5ba3fae0f77cbe08deac4984dfa4f5397345d5ba8221871285a96e2ef8f16808"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-04-21T07:31:35.173580423Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/local/openjdk-17",
            "LANG=C.UTF-8",
            "JAVA_VERSION=17.0.2",
            "MAVEN_HOME=/usr/share/maven",
            "MAVEN_CONFIG=/root/.m2"
        ],
        "Cmd": [
            "mvn"
        ],
        "Image": "sha256:265ba32562e58aec18fc10f0d0497544dbdecabd2595a56c93bfcb9c959c59fa",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/local/bin/mvn-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 424145553,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/774dd9882f231d50d39fe880259ea43d4d1da3b5bfd91823ed3bce453fa9a479/diff:/var/lib/docker/overlay2/71b6fe5f069edd9de7e3c0ac401fd42b8e5ee7a7ecd6b358dd0ceb771b39fa4b/diff:/var/lib/docker/overlay2/1ff36dc204c598d56a9401cefa7e4c5448499bd2e08fda08cc9fc3fc4268e766/diff:/var/lib/docker/overlay2/a42f13a3d88cfc0a5a7ad3211c822344766ea0f0e9a5dd959a13a7a23bf9a81f/diff:/var/lib/docker/overlay2/7f4999cf1b1917b722c3621b6c536ffa678d577038ec294bd54d03675c8b3d45/diff:/var/lib/docker/overlay2/f46f5b0eef61bfc6262e01cb9d0ddd5f451e235cf42a969a45d6438ba60ee614/diff",
            "MergedDir": "/var/lib/docker/overlay2/d9ea7f24bf0185c4eb1757f5024d99662efd06e4a43e2d259e4fa95e70db3091/merged",
            "UpperDir": "/var/lib/docker/overlay2/d9ea7f24bf0185c4eb1757f5024d99662efd06e4a43e2d259e4fa95e70db3091/diff",
            "WorkDir": "/var/lib/docker/overlay2/d9ea7f24bf0185c4eb1757f5024d99662efd06e4a43e2d259e4fa95e70db3091/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9c1b6dd6c1e6be9fdd2b1987783824670d3b0dd7ae8ad6f57dc3cea5739ac71e",
            "sha256:13a34b6fff7804cf7f6e8f52a4cf25ceb2e32fc35a6f39e8158074c64831ebf0",
            "sha256:6be690267e47ddcfd965449d2af70a9eca9879f9436948ee83d7f4ad473b8e64",
            "sha256:3736f2313843a23c2e431f744f4b02dad97287ced3b5c20273f1d049d9a1ea20",
            "sha256:bc2af3cd1567265b12b1cb62934b625d0c910cf42387d5cbbcecf779814f172d",
            "sha256:8d2c3e6dd4a7e84c4aacf78bcb139ac2c1640707252dfeea0ea0cf5637c9c4d5",
            "sha256:805f571012db51a60530ab34f49420e954a4bbc77327079b3e0aca44082199e7"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-07-22T16:40:45.88053539+08:00"
    }
}

更多版本

docker.io/library/maven:3.8.5-openjdk-17-slim

linux/amd64 docker.io424.15MB2024-07-22 16:40
311