docker.io/maven:3.8.7-openjdk-18 linux/amd64

docker.io/maven:3.8.7-openjdk-18 - 国内下载镜像源 浏览次数:58

maven镜像用于构建、测试和打包Java项目。它提供了 Maven 3.x 版本,支持各种 Java 依赖项管理和构建任务。

源镜像 docker.io/maven:3.8.7-openjdk-18
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18
镜像ID sha256:c813ec5fd45171e0568f0fd534c362f4c75d17e8782671b9ab022e2045dcd5d2
镜像TAG 3.8.7-openjdk-18
大小 826.03MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn
启动入口 /usr/local/bin/mvn-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 58 次
贡献者
镜像创建 2023-02-08T20:08:40.823410699Z
同步时间 2024-12-04 13:32
更新时间 2025-01-17 17:16
环境变量
PATH=/usr/java/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/java/openjdk-18 LANG=C.UTF-8 JAVA_VERSION=18.0.2.1 MAVEN_HOME=/usr/share/maven MAVEN_CONFIG=/root/.m2
镜像安全扫描 查看Trivy扫描报告

系统OS: oracle 8.7 扫描引擎: Trivy 扫描时间: 2024-12-04 13:33

低危漏洞:20 中危漏洞:147 高危漏洞:89 严重漏洞:0

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18  docker.io/maven:3.8.7-openjdk-18

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18  docker.io/maven:3.8.7-openjdk-18

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-02-09 04:08:40  0.00B 
/bin/sh -c #(nop)  CMD ["mvn"]
                        
# 2023-02-09 04:08:40  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
                        
# 2023-02-09 04:08:40  327.00B 
/bin/sh -c #(nop) COPY file:2bbb488dd73c55d658b91943cfdf9c26975a320ceafc45dda94c95b03e518ad3 in /usr/share/maven/ref/ 
                        
# 2023-02-09 04:08:40  1.65KB 
/bin/sh -c #(nop) COPY file:1b3da5c58894f705e7387946301c0c52edb6271761ea3cd80b86a848847a64cd in /usr/local/bin/mvn-entrypoint.sh 
                        
# 2023-02-09 04:08:40  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_CONFIG=/root/.m2
                        
# 2023-02-09 04:08:40  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_HOME=/usr/share/maven
                        
# 2023-02-09 04:08:40  9.72MB 
|4 BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.7/binaries MAVEN_VERSION=3.8.7 SHA=21c2be0a180a326353e8f6d12289f74bc7cd53080305f05358936f3a1b6dd4d91203f4cc799e81761cf5c53c5bbe9dcc13bdb27ec8f57ecf21b2f9ceec3c8d27 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
                        
# 2023-02-09 04:08:32  0.00B 
/bin/sh -c #(nop)  ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.7/binaries
                        
# 2023-02-09 04:08:32  0.00B 
/bin/sh -c #(nop)  ARG SHA=21c2be0a180a326353e8f6d12289f74bc7cd53080305f05358936f3a1b6dd4d91203f4cc799e81761cf5c53c5bbe9dcc13bdb27ec8f57ecf21b2f9ceec3c8d27
                        
# 2023-02-09 04:08:32  0.00B 
/bin/sh -c #(nop)  ARG USER_HOME_DIR=/root
                        
# 2023-02-09 04:08:31  0.00B 
/bin/sh -c #(nop)  ARG MAVEN_VERSION=3.8.7
                        
# 2023-02-09 04:08:30  346.38MB 
/bin/sh -c microdnf install findutils git
                        
# 2023-02-09 03:46:03  0.00B 
/bin/sh -c #(nop)  CMD ["jshell"]
                        
# 2023-02-09 03:46:02  323.64MB 
/bin/sh -c set -eux; 		arch="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; 	case "$arch" in 		'i386:x86-64') 			downloadUrl='https://download.java.net/java/GA/jdk18.0.2.1/db379da656dc47308e138f21b33976fa/1/GPL/openjdk-18.0.2.1_linux-x64_bin.tar.gz'; 			downloadSha256='3bfdb59fc38884672677cebca9a216902d87fe867563182ae8bc3373a65a2ebd'; 			;; 		'aarch64') 			downloadUrl='https://download.java.net/java/GA/jdk18.0.2.1/db379da656dc47308e138f21b33976fa/1/GPL/openjdk-18.0.2.1_linux-aarch64_bin.tar.gz'; 			downloadSha256='79900237a5912045f8c9f1065b5204a474803cbbb4d075ab9620650fb75dfc1b'; 			;; 		*) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; 	esac; 		curl -fL -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*; 		rm -rf "$JAVA_HOME/lib/security/cacerts"; 	ln -sT /etc/pki/ca-trust/extracted/java/cacerts "$JAVA_HOME/lib/security/cacerts"; 		ln -sfT "$JAVA_HOME" /usr/java/default; 	ln -sfT "$JAVA_HOME" /usr/java/latest; 	for bin in "$JAVA_HOME/bin/"*; do 		base="$(basename "$bin")"; 		[ ! -e "/usr/bin/$base" ]; 		alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; 	done; 		java -Xshare:dump; 		fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; 	javac --version; 	java --version
                        
# 2023-02-09 03:45:52  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=18.0.2.1
                        
# 2023-02-09 03:45:52  0.00B 
/bin/sh -c #(nop)  ENV LANG=C.UTF-8
                        
# 2023-02-09 03:45:52  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/java/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-02-09 03:45:52  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/java/openjdk-18
                        
# 2023-02-09 03:44:53  36.67MB 
/bin/sh -c set -eux; 	microdnf install 		gzip 		tar 				binutils 		freetype fontconfig 	; 	microdnf clean all
                        
# 2023-02-09 03:27:32  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2023-02-09 03:27:31  109.62MB 
/bin/sh -c #(nop) ADD file:6a3fb962576ab4237e9335cfcf419249f08417e28cfbb633d7cc6f26f1f85287 in / 
                        
                    

镜像信息

{
    "Id": "sha256:c813ec5fd45171e0568f0fd534c362f4c75d17e8782671b9ab022e2045dcd5d2",
    "RepoTags": [
        "maven:3.8.7-openjdk-18",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18"
    ],
    "RepoDigests": [
        "maven@sha256:f22971fa3103b6a5145741dd80cc1660490bef93deb6400276c96dadf5bfd75f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven@sha256:1936d70bb3415a0d7e822ed484cdb4974593b195091c145b52ba7775003dc3f0"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2023-02-08T20:08:40.823410699Z",
    "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/java/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/java/openjdk-18",
            "LANG=C.UTF-8",
            "JAVA_VERSION=18.0.2.1",
            "MAVEN_HOME=/usr/share/maven",
            "MAVEN_CONFIG=/root/.m2"
        ],
        "Cmd": [
            "mvn"
        ],
        "Image": "sha256:53eed9ad023b719489f921c5f2f1cb1de61e16ae507ecaa1e180e7fa21e00b2d",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/local/bin/mvn-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 826033601,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/81ad24e47a00350c3671ca4b5e074f275f13e68fe4f12e204450995a912af574/diff:/var/lib/docker/overlay2/89d80f88bd66bc738bcc642d17d1e618aae480d2d26347aae560e047c68737c0/diff:/var/lib/docker/overlay2/ed3e2aad03bc3adb82dbf331bfb204c00ae2280d67c91a6e8aeae01f4881faa1/diff:/var/lib/docker/overlay2/629791aefd777960e14efd2cbd4a28ce0df1b7e9c93596c8b2e8a77cb13bb188/diff:/var/lib/docker/overlay2/9250a322b5b28bb8a7077f5a88e4cc4827480844dcd8ec7fd83b62ab856ab3f4/diff:/var/lib/docker/overlay2/06a706038ce692484b547d690bedd72e0a999f1be9081d9e6782bc12f81d6d6f/diff",
            "MergedDir": "/var/lib/docker/overlay2/c360dfed5ec742261e4f31bfe3e69234f62f85b0e43ef39355a9349c862bec0a/merged",
            "UpperDir": "/var/lib/docker/overlay2/c360dfed5ec742261e4f31bfe3e69234f62f85b0e43ef39355a9349c862bec0a/diff",
            "WorkDir": "/var/lib/docker/overlay2/c360dfed5ec742261e4f31bfe3e69234f62f85b0e43ef39355a9349c862bec0a/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9cd9df9ffc972e9abc946d855162ef0c40dff9a89f10c962b7920154a3d943d8",
            "sha256:077bff59ce5723e3c7d78bdf4fd8b10d72f6f8474b97cdb9323816aa5d8314a6",
            "sha256:56285d9a776094205dc0b66078bf0719f50c734a00754292e6fcbd13b17f5155",
            "sha256:26fbda058ddfa82205886a2b1c8b7a8c90f64d501a04c8e4cb2b7bc72c6ef1ed",
            "sha256:8173bb9e429cb271a659fd8c7a5cf9a352f4feb895c10ded28d02cfb9ac1d220",
            "sha256:9df31b0193034fd36dd4b325f4b75243a8a599a066167e797a7fc6553b84d6a7",
            "sha256:9fe697f42d5096ac0d388c7ea1fd81cb49618678e493690f25cc7ebc521b9178"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-04T13:31:00.062175004+08:00"
    }
}

更多版本

docker.io/maven:3.8.5-openjdk-17

linux/amd64 docker.io797.99MB2024-07-04 15:41
733

docker.io/maven:3.6.0-jdk-8-alpine

linux/amd64 docker.io121.59MB2024-08-19 14:45
276

docker.io/maven:3.8-openjdk-8

linux/amd64 docker.io536.21MB2024-09-27 16:07
311

docker.io/maven:3.8.8-amazoncorretto-8-debian

linux/arm64 docker.io322.03MB2024-10-14 22:19
111

docker.io/maven:3.8.8-amazoncorretto-8-debian

linux/amd64 docker.io314.16MB2024-10-14 22:20
107

docker.io/maven:3.8.8-amazoncorretto-11-debian

linux/amd64 docker.io420.41MB2024-10-14 22:22
107

docker.io/maven:3.8.8-amazoncorretto-17-debian

linux/amd64 docker.io428.06MB2024-10-14 22:23
118

docker.io/maven:3.8.8-amazoncorretto-21-debian

linux/arm64 docker.io478.44MB2024-10-14 22:25
90

docker.io/maven:3.8.8-amazoncorretto-17-debian

linux/arm64 docker.io450.75MB2024-10-14 22:26
101

docker.io/maven:3.8.8-amazoncorretto-11-debian

linux/arm64 docker.io440.53MB2024-10-14 22:27
85

docker.io/maven:3.8.8-amazoncorretto-21-debian

linux/amd64 docker.io457.05MB2024-10-15 10:03
117

docker.io/maven:3.9.9-amazoncorretto-23-al2023

linux/amd64 docker.io602.69MB2024-10-24 08:49
97

docker.io/maven:3.9.9-amazoncorretto-23-al2023

linux/arm64 docker.io689.84MB2024-10-24 08:51
86

docker.io/maven:3.6.3-jdk-8

linux/amd64 docker.io525.10MB2024-10-24 15:54
196

docker.io/maven:3-openjdk-8

linux/arm64 docker.io530.31MB2024-10-24 16:13
141

docker.io/maven:3.9.9-amazoncorretto-8

linux/amd64 docker.io825.73MB2024-10-28 14:03
153

docker.io/maven:3.6.3-openjdk-17

linux/amd64 docker.io740.43MB2024-11-26 10:10
84

docker.io/maven:3.6.3-openjdk-8

linux/amd64 docker.io525.10MB2024-11-26 10:11
99

docker.io/maven:3.8.7-openjdk-18

linux/amd64 docker.io826.03MB2024-12-04 13:32
57

docker.io/maven:3.8.6-openjdk-8

linux/amd64 docker.io536.21MB2024-12-17 19:29
56

docker.io/maven:3.9.9-amazoncorretto-23-debian-bookworm

linux/amd64 docker.io474.84MB2025-01-03 15:29
30

docker.io/maven:3.9.9-amazoncorretto-21-debian

linux/amd64 docker.io467.84MB2025-01-06 11:00
28

docker.io/maven:3.6.3-openjdk-11

linux/amd64 docker.io658.16MB2025-01-07 11:09
35