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

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

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

源镜像 docker.io/maven:3.8.7-openjdk-18-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18-slim
镜像ID sha256:91a7529964d0db55a9fa4ba31c7af092b0cc6d937e1e6cffa74eab21ccd15bcd
镜像TAG 3.8.7-openjdk-18-slim
大小 426.19MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn
启动入口 /usr/local/bin/mvn-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 9 次
贡献者 24*******5@qq.com
镜像创建 2023-02-10T20:59:54.261613501Z
同步时间 2025-08-29 17:25
更新时间 2025-08-29 19:00
环境变量
PATH=/usr/local/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/local/openjdk-18 LANG=C.UTF-8 JAVA_VERSION=18.0.2.1 MAVEN_HOME=/usr/share/maven MAVEN_CONFIG=/root/.m2

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#maven:3.8.7-openjdk-18-slim#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18-slim#' 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-slim && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18-slim  docker.io/maven:3.8.7-openjdk-18-slim'

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-slim && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18-slim  docker.io/maven:3.8.7-openjdk-18-slim'

镜像构建历史


# 2023-02-11 04:59:54  0.00B 
/bin/sh -c #(nop)  CMD ["mvn"]
                        
# 2023-02-11 04:59:54  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
                        
# 2023-02-11 04:59:54  327.00B 
/bin/sh -c #(nop) COPY file:2bbb488dd73c55d658b91943cfdf9c26975a320ceafc45dda94c95b03e518ad3 in /usr/share/maven/ref/ 
                        
# 2023-02-11 04:59:53  1.65KB 
/bin/sh -c #(nop) COPY file:1b3da5c58894f705e7387946301c0c52edb6271761ea3cd80b86a848847a64cd in /usr/local/bin/mvn-entrypoint.sh 
                        
# 2023-02-11 04:59:53  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_CONFIG=/root/.m2
                        
# 2023-02-11 04:59:53  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_HOME=/usr/share/maven
                        
# 2023-02-11 04:59:53  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-11 04:59:51  0.00B 
/bin/sh -c #(nop)  ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.7/binaries
                        
# 2023-02-11 04:59:51  0.00B 
/bin/sh -c #(nop)  ARG SHA=21c2be0a180a326353e8f6d12289f74bc7cd53080305f05358936f3a1b6dd4d91203f4cc799e81761cf5c53c5bbe9dcc13bdb27ec8f57ecf21b2f9ceec3c8d27
                        
# 2023-02-11 04:59:51  0.00B 
/bin/sh -c #(nop)  ARG USER_HOME_DIR=/root
                        
# 2023-02-11 04:59:51  0.00B 
/bin/sh -c #(nop)  ARG MAVEN_VERSION=3.8.7
                        
# 2023-02-11 04:59:51  6.25MB 
/bin/sh -c apt-get update   && apt-get install -y curl procps   && rm -rf /var/lib/apt/lists/*
                        
# 2023-02-09 18:50:21  0.00B 
/bin/sh -c #(nop)  CMD ["jshell"]
                        
# 2023-02-09 18:50:21  324.82MB 
/bin/sh -c set -eux; 		arch="$(dpkg --print-architecture)"; 	case "$arch" in 		'amd64') 			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'; 			;; 		'arm64') 			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; 		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
                        
# 2023-02-09 18:50:08  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=18.0.2.1
                        
# 2023-02-09 18:50:08  0.00B 
/bin/sh -c #(nop)  ENV LANG=C.UTF-8
                        
# 2023-02-09 18:50:08  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-02-09 18:50:07  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/local/openjdk-18
                        
# 2023-02-09 18:47:20  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/*
                        
# 2023-02-09 11:20:20  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2023-02-09 11:20:20  80.51MB 
/bin/sh -c #(nop) ADD file:3ea7c69e4bfac2ebb6f86baaedab31827c86a594dba8080a49928e211ad3c7a0 in / 
                        
                    

镜像信息

{
    "Id": "sha256:91a7529964d0db55a9fa4ba31c7af092b0cc6d937e1e6cffa74eab21ccd15bcd",
    "RepoTags": [
        "maven:3.8.7-openjdk-18-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.7-openjdk-18-slim"
    ],
    "RepoDigests": [
        "maven@sha256:0ccb24680338459567324858307f64ccff55e4e5904487b9b376dcf672f6dafa",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven@sha256:6e08ab80ed557294e30c9555c923e7620a8125b4f207996d961535789088339b"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2023-02-10T20:59:54.261613501Z",
    "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-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/local/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:f9ebed30b3f4af2f73c3c6afcbf0532aa304c3a0dc65c946710edfd2cbf03e96",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/local/bin/mvn-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 426191672,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/0d3bfe925511685fe2720994d7e9dfe1d8fd3fb1409c037df831f2684db29642/diff:/var/lib/docker/overlay2/d1ccce40c70f4e3efd1a569b3632fbc88c24acf05005a0212ebef49a8b8809c4/diff:/var/lib/docker/overlay2/614cf9e5fd38a151f4345dc780f1de04b13675e25d4f6fa905f89e62d07df785/diff:/var/lib/docker/overlay2/55b73b7850405b16548af36da95f105592f751d17cb88a7a50a73ec5757a4e85/diff:/var/lib/docker/overlay2/dae209a0691c88f80603cdcb2ac23bee1b00ac909531f1c339d26f2374b1b5bd/diff:/var/lib/docker/overlay2/4586b24283b73ae9a562aac0c3d808a718334836f8e7f7f9286f004348bcb801/diff",
            "MergedDir": "/var/lib/docker/overlay2/e526c11c608517a202c9c697192e2a43dab430a2a721672cd61ec52b68bed5d7/merged",
            "UpperDir": "/var/lib/docker/overlay2/e526c11c608517a202c9c697192e2a43dab430a2a721672cd61ec52b68bed5d7/diff",
            "WorkDir": "/var/lib/docker/overlay2/e526c11c608517a202c9c697192e2a43dab430a2a721672cd61ec52b68bed5d7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:4695cdfb426a05673a100e69d2fe9810d9ab2b3dd88ead97c6a3627246d83815",
            "sha256:81d28cca9b375eec0dc95da508869402a7c9015583fd973af37d105b7bb2797f",
            "sha256:a40ee0f44ba216dde93b56cc54818161cec6cbf0bdf8991feca6af1030b47afc",
            "sha256:3a3c37b590cd6120d68041f1ecc6241bb59319852fa10f4c70031b38abfa325d",
            "sha256:e9adeca6521793b1811c9aacc838b3fff952a62333b7a736b54860db6d7b4857",
            "sha256:d10a999de97fc359fc19f42dde419961a55c692f16d2ddc3e112505d6d5c4bd0",
            "sha256:4f468d2b5335a6ebfbe2effc1cd66052a3f13b2ca91d66746e19a05197dcd282"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-08-29T17:25:46.934996997+08:00"
    }
}

更多版本

docker.io/maven:3.8.5-openjdk-17

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

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

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

docker.io/maven:3.8-openjdk-8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

docker.io/maven:3.6.3-jdk-8

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

docker.io/maven:3-openjdk-8

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

docker.io/maven:3.9.9-amazoncorretto-8

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

docker.io/maven:3.6.3-openjdk-17

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

docker.io/maven:3.6.3-openjdk-8

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

docker.io/maven:3.8.7-openjdk-18

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

docker.io/maven:3.8.6-openjdk-8

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

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

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

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

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

docker.io/maven:3.6.3-openjdk-11

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

docker.io/maven:3.8.6-jdk-11-slim

linux/amd64 docker.io440.02MB2025-01-23 14:18
370

docker.io/maven:3.8.6-jdk-8

linux/amd64 docker.io536.21MB2025-02-12 10:18
295

docker.io/maven:3.9.9-eclipse-temurin-17-alpine

linux/amd64 docker.io350.58MB2025-03-04 15:46
446

docker.io/maven:3.9-eclipse-temurin-21-alpine

linux/amd64 docker.io379.11MB2025-03-06 17:05
444

docker.io/maven:3.9-eclipse-temurin-17-alpine

linux/amd64 docker.io350.58MB2025-03-06 21:56
300

docker.io/maven:3.8-eclipse-temurin-21-alpine

linux/amd64 docker.io356.50MB2025-03-06 22:07
263

docker.io/maven:3.8.3-jdk-8

linux/amd64 docker.io536.59MB2025-03-10 09:49
169

docker.io/maven:3.6.3-jdk-11

linux/arm64 docker.io648.18MB2025-04-08 19:11
194

docker.io/maven:3.8.5-openjdk-11

linux/amd64 docker.io669.93MB2025-04-10 16:29
237

docker.io/maven:3.9.9-eclipse-temurin-21-alpine

linux/amd64 docker.io379.12MB2025-04-14 18:01
450

docker.io/maven:3.9.9-eclipse-temurin-21-jammy

linux/amd64 docker.io517.73MB2025-04-14 19:37
418

docker.io/maven:3.6.3-openjdk-17-slim

linux/amd64 docker.io415.28MB2025-04-22 15:19
253

docker.io/maven:3.9.6-sapmachine-21

linux/amd64 docker.io537.55MB2025-04-23 17:34
301

docker.io/maven:3.8.4-openjdk-11

linux/amd64 docker.io670.32MB2025-04-27 08:46
195

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

linux/amd64 docker.io599.84MB2025-04-28 11:15
338

docker.io/maven:3.9-eclipse-temurin-8

linux/amd64 docker.io356.66MB2025-05-12 15:19
162

docker.io/maven:latest

linux/amd64 docker.io530.09MB2025-05-21 14:31
284

docker.io/maven:3.9.9-eclipse-temurin-21-noble

linux/amd64 docker.io530.10MB2025-06-17 14:17
141

docker.io/maven:3.9.9-eclipse-temurin-17-noble

linux/amd64 docker.io502.19MB2025-06-19 10:02
163

docker.io/maven:3.9.9-eclipse-temurin-11-noble

linux/amd64 docker.io483.62MB2025-06-19 10:04
137

docker.io/maven:3.9.9-eclipse-temurin-8-noble

linux/amd64 docker.io356.68MB2025-06-19 10:14
135

docker.io/maven:3-jdk-8

linux/amd64 docker.io536.21MB2025-06-25 19:30
120

docker.io/maven:3-openjdk-11

linux/arm64 docker.io655.20MB2025-07-04 11:23
97

docker.io/maven:3.8.3-openjdk-11

linux/arm64 docker.io658.78MB2025-07-04 11:30
124

docker.io/maven:3.8.8-eclipse-temurin-21-alpine

linux/amd64 docker.io356.50MB2025-07-05 10:58
99

docker.io/maven:3.8.8-eclipse-temurin-21-alpine

linux/arm64 docker.io361.39MB2025-07-05 11:01
97

docker.io/maven:3-openjdk-17

linux/amd64 docker.io797.99MB2025-07-11 12:01
169

docker.io/maven:3.8.6-eclipse-temurin-17

linux/amd64 docker.io535.61MB2025-07-14 16:08
140

docker.io/maven:3.9.11-eclipse-temurin-8

linux/amd64 docker.io356.80MB2025-07-25 10:11
103

docker.io/maven:3.8.2-eclipse-temurin-17

linux/amd64 docker.io557.12MB2025-08-13 11:10
68

docker.io/maven:3.8-openjdk-17

linux/amd64 docker.io797.99MB2025-08-14 20:58
67

docker.io/maven:3.9.4-eclipse-temurin-21

linux/amd64 docker.io508.56MB2025-08-26 10:41
22

docker.io/maven:3.8.7-openjdk-18-slim

linux/amd64 docker.io426.19MB2025-08-29 17:25
8