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

docker.io/maven:3.8.6-jdk-11-slim - 国内下载镜像源 浏览次数:37

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

源镜像 docker.io/maven:3.8.6-jdk-11-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim
镜像ID sha256:62643abbdb7b732a1267a2acabef7b08a57240914c7def0c4503f9bc6d95845f
镜像TAG 3.8.6-jdk-11-slim
大小 440.02MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn
启动入口 /usr/local/bin/mvn-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 37 次
贡献者
镜像创建 2022-08-03T07:33:34.638680479Z
同步时间 2025-01-23 14:18
更新时间 2025-01-30 14:41
环境变量
PATH=/usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/local/openjdk-11 LANG=C.UTF-8 JAVA_VERSION=11.0.16 MAVEN_HOME=/usr/share/maven MAVEN_CONFIG=/root/.m2
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 11.4 扫描引擎: Trivy 扫描时间: 2025-01-23 14:18

低危漏洞:111 中危漏洞:91 高危漏洞:78 严重漏洞:16

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim  docker.io/maven:3.8.6-jdk-11-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim  docker.io/maven:3.8.6-jdk-11-slim

Shell快速替换命令

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

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim  docker.io/maven:3.8.6-jdk-11-slim'

镜像构建历史


# 2022-08-03 15:33:34  0.00B 
/bin/sh -c #(nop)  CMD ["mvn"]
                        
# 2022-08-03 15:33:34  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
                        
# 2022-08-03 15:33:34  327.00B 
/bin/sh -c #(nop) COPY file:2bbb488dd73c55d658b91943cfdf9c26975a320ceafc45dda94c95b03e518ad3 in /usr/share/maven/ref/ 
                        
# 2022-08-03 15:33:34  1.65KB 
/bin/sh -c #(nop) COPY file:1b3da5c58894f705e7387946301c0c52edb6271761ea3cd80b86a848847a64cd in /usr/local/bin/mvn-entrypoint.sh 
                        
# 2022-08-03 15:33:34  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_CONFIG=/root/.m2
                        
# 2022-08-03 15:33:34  0.00B 
/bin/sh -c #(nop)  ENV MAVEN_HOME=/usr/share/maven
                        
# 2022-08-03 15:33:33  10.16MB 
|4 BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.6/binaries MAVEN_VERSION=3.8.6 SHA=f790857f3b1f90ae8d16281f902c689e4f136ebe584aba45e4b1fa66c80cba826d3e0e52fdd04ed44b4c66f6d3fe3584a057c26dfcac544a60b301e6d0f91c26 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-08-03 15:33:25  0.00B 
/bin/sh -c #(nop)  ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/3.8.6/binaries
                        
# 2022-08-03 15:33:25  0.00B 
/bin/sh -c #(nop)  ARG SHA=f790857f3b1f90ae8d16281f902c689e4f136ebe584aba45e4b1fa66c80cba826d3e0e52fdd04ed44b4c66f6d3fe3584a057c26dfcac544a60b301e6d0f91c26
                        
# 2022-08-03 15:33:25  0.00B 
/bin/sh -c #(nop)  ARG USER_HOME_DIR=/root
                        
# 2022-08-03 15:33:25  0.00B 
/bin/sh -c #(nop)  ARG MAVEN_VERSION=3.8.6
                        
# 2022-08-03 15:33:25  6.27MB 
/bin/sh -c apt-get update   && apt-get install -y curl procps   && rm -rf /var/lib/apt/lists/*
                        
# 2022-08-02 13:52:36  0.00B 
/bin/sh -c #(nop)  CMD ["jshell"]
                        
# 2022-08-02 13:52:35  338.31MB 
/bin/sh -c set -eux; 		arch="$(dpkg --print-architecture)"; 	case "$arch" in 		'amd64') 			downloadUrl='https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.16%2B8/OpenJDK11U-jdk_x64_linux_11.0.16_8.tar.gz'; 			;; 		'arm64') 			downloadUrl='https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.16%2B8/OpenJDK11U-jdk_aarch64_linux_11.0.16_8.tar.gz'; 			;; 		*) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; 	esac; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		dirmngr 		gnupg 		wget 	; 	rm -rf /var/lib/apt/lists/*; 		wget --progress=dot:giga -O openjdk.tgz "$downloadUrl"; 	wget --progress=dot:giga -O openjdk.tgz.asc "$downloadUrl.sign"; 		export GNUPGHOME="$(mktemp -d)"; 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys EAC843EBD3EFDB98CC772FADA5CD6035332FA671; 	gpg --batch --keyserver keyserver.ubuntu.com --keyserver-options no-self-sigs-only --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; 	gpg --batch --list-sigs --keyid-format 0xLONG CA5F11C6CE22644D42C6AC4492EF8D39DC13168F 		| tee /dev/stderr 		| grep '0xA5CD6035332FA671' 		| grep 'Andrew Haley'; 	gpg --batch --verify openjdk.tgz.asc openjdk.tgz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME"; 		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-08-02 13:52:17  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=11.0.16
                        
# 2022-08-02 13:52:17  0.00B 
/bin/sh -c #(nop)  ENV LANG=C.UTF-8
                        
# 2022-08-02 13:52:17  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2022-08-02 13:52:17  27.00B 
/bin/sh -c { echo '#/bin/sh'; echo 'echo "$JAVA_HOME"'; } > /usr/local/bin/docker-java-home && chmod +x /usr/local/bin/docker-java-home && [ "$JAVA_HOME" = "$(docker-java-home)" ] # backwards compatibility
                        
# 2022-08-02 13:52:16  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/local/openjdk-11
                        
# 2022-08-02 13:48:05  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-08-02 09:20:05  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2022-08-02 09:20:04  80.39MB 
/bin/sh -c #(nop) ADD file:0eae0dca665c7044bf242cb1fc92cb8ea744f5af2dd376a558c90bc47349aefe in / 
                        
                    

镜像信息

{
    "Id": "sha256:62643abbdb7b732a1267a2acabef7b08a57240914c7def0c4503f9bc6d95845f",
    "RepoTags": [
        "maven:3.8.6-jdk-11-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.8.6-jdk-11-slim"
    ],
    "RepoDigests": [
        "maven@sha256:2cb7c73ba2fd0f7ae64cfabd99180030ec85841a1197b4ae821d21836cb0aa3b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven@sha256:d12b61d6ea1938fd3f8b194f06276a2b70b4f1f5b2a87304a7c0c585db64b242"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-08-03T07:33:34.638680479Z",
    "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-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/local/openjdk-11",
            "LANG=C.UTF-8",
            "JAVA_VERSION=11.0.16",
            "MAVEN_HOME=/usr/share/maven",
            "MAVEN_CONFIG=/root/.m2"
        ],
        "Cmd": [
            "mvn"
        ],
        "Image": "sha256:b5b9ade36e7aac0eade7b983db7c0ce98f35ffe879d9c762ab003ab90b7b92ea",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/local/bin/mvn-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 440015515,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/743a1894e69229d13ee17d21bb7b4e4dd6f15f151fe78702b76eb179b80e5b69/diff:/var/lib/docker/overlay2/0a18fcee678d3ab320740774d8785e58314c5dab37100b817132fe27edb8e401/diff:/var/lib/docker/overlay2/8590c3230fa931b227137440b30a5908c2415d8cf4b321050976cd001783129a/diff:/var/lib/docker/overlay2/d15877628d09468a29712a6e773874dee08b42fd3dfb4d036328d7727b4c48ea/diff:/var/lib/docker/overlay2/3f6ad1b70e989e0d0ee48b4fb9e801ec62625807e5c5d19a0dbcde9c77a714f3/diff:/var/lib/docker/overlay2/9c71e9255f93b8db166af620ce1c6555d75ed5cbe12cfe711321c244665ba88a/diff:/var/lib/docker/overlay2/7ea06a880f35006476b5fe87975006641ae6094e7a3dae782a694ea632aba0f0/diff",
            "MergedDir": "/var/lib/docker/overlay2/b10af0de8ef5b58258978bf0ddb40789a4a7ee5cfac2fbb80c179edf42970011/merged",
            "UpperDir": "/var/lib/docker/overlay2/b10af0de8ef5b58258978bf0ddb40789a4a7ee5cfac2fbb80c179edf42970011/diff",
            "WorkDir": "/var/lib/docker/overlay2/b10af0de8ef5b58258978bf0ddb40789a4a7ee5cfac2fbb80c179edf42970011/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:92a4e8a3140f7a04a0e5a15793adef2d0e8889ed306a8f95a6cfb67cecb5f212",
            "sha256:eafe6e032dbd1979848a323c4c84071be765d175661d6ea2ac148dbd673c6713",
            "sha256:e3abdc2e92525469b91b8616216f3ab94b40c98f99e9690fd8505725fd7e1bfe",
            "sha256:eb6ee5b9581f8e84de2e1969953594b7cc976d142c426f8e989d49d9c95f63f5",
            "sha256:15be18985f4421b85e9356f5b8349ecbc54cbdf3b2aa30b224f6d91cb1854eb8",
            "sha256:0450b5baf58e5f5029e2415ec5b12d4da8014a00f53ca598e9be1578a8a43d98",
            "sha256:0e2d5f5d45b2a1915470b5890b50d29f3ec1fe2957290cabf4048452a2b7e15d",
            "sha256:f68fa63a331c8b447f5fade63606b404218bf98ea4421660cbfb20d50e03fe4d"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-23T14:18:07.838635215+08:00"
    }
}

更多版本

docker.io/maven:3.8.5-openjdk-17

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

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

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

docker.io/maven:3.8-openjdk-8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

docker.io/maven:3.6.3-jdk-8

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

docker.io/maven:3-openjdk-8

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

docker.io/maven:3.9.9-amazoncorretto-8

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

docker.io/maven:3.6.3-openjdk-17

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

docker.io/maven:3.6.3-openjdk-8

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

docker.io/maven:3.8.7-openjdk-18

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

docker.io/maven:3.8.6-openjdk-8

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

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

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

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

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

docker.io/maven:3.6.3-openjdk-11

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

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

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