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

docker.io/maven:3.9.9-amazoncorretto-21-debian - 国内下载镜像源 浏览次数:29

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

源镜像 docker.io/maven:3.9.9-amazoncorretto-21-debian
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian
镜像ID sha256:2dcfe13e93c6ae1138a3c9d6f849b76be430157a8c4f982bc5c64975ad6cc002
镜像TAG 3.9.9-amazoncorretto-21-debian
大小 467.84MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn
启动入口 /usr/local/bin/mvn-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 29 次
贡献者
镜像创建 2024-12-07T17:04:44Z
同步时间 2025-01-06 11:00
更新时间 2025-01-17 15:32
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto MAVEN_HOME=/usr/share/maven MAVEN_CONFIG=/root/.m2
镜像标签
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.: org.opencontainers.image.description https://github.com/carlossg/docker-maven: org.opencontainers.image.source Apache Maven: org.opencontainers.image.title https://github.com/carlossg/docker-maven: org.opencontainers.image.url
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.8 扫描引擎: Trivy 扫描时间: 2025-01-06 11:00

低危漏洞:81 中危漏洞:14 高危漏洞:6 严重漏洞:1

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian  docker.io/maven:3.9.9-amazoncorretto-21-debian

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian  docker.io/maven:3.9.9-amazoncorretto-21-debian

Shell快速替换命令

sed -i 's#maven:3.9.9-amazoncorretto-21-debian#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian  docker.io/maven:3.9.9-amazoncorretto-21-debian'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian  docker.io/maven:3.9.9-amazoncorretto-21-debian'

镜像构建历史


# 2024-12-08 01:04:44  0.00B 设置默认要执行的命令
CMD ["mvn"]
                        
# 2024-12-08 01:04:44  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
                        
# 2024-12-08 01:04:44  0.00B 设置环境变量 MAVEN_CONFIG
ENV MAVEN_CONFIG=/root/.m2
                        
# 2024-12-08 01:04:44  0.00B 定义构建参数
ARG USER_HOME_DIR=/root
                        
# 2024-12-08 01:04:44  0.00B 定义构建参数
ARG MAVEN_VERSION=3.9.9
                        
# 2024-12-08 01:04:44  24.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn # buildkit
                        
# 2024-12-08 01:04:44  0.00B 复制新文件或目录到容器中
COPY /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml # buildkit
                        
# 2024-12-08 01:04:44  1.65KB 复制新文件或目录到容器中
COPY /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh # buildkit
                        
# 2024-12-08 01:04:44  10.64MB 复制新文件或目录到容器中
COPY /usr/share/maven /usr/share/maven # buildkit
                        
# 2024-12-08 01:04:44  0.00B 设置环境变量 MAVEN_HOME
ENV MAVEN_HOME=/usr/share/maven
                        
# 2024-12-08 01:04:44  0.00B 添加元数据标签
LABEL org.opencontainers.image.description=Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
                        
# 2024-12-08 01:04:44  0.00B 添加元数据标签
LABEL org.opencontainers.image.url=https://github.com/carlossg/docker-maven
                        
# 2024-12-08 01:04:44  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/carlossg/docker-maven
                        
# 2024-12-08 01:04:44  0.00B 添加元数据标签
LABEL org.opencontainers.image.title=Apache Maven
                        
# 2024-12-08 01:04:44  0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto
                        
# 2024-12-08 01:04:44  382.39MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update   && apt-get install -y curl gnupg openssh-client   && export GNUPGHOME="$(mktemp -d)"   && curl -fL https://apt.corretto.aws/corretto.key -o corretto.key   && echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c -   && gpg --batch --import corretto.key   && rm corretto.key   && gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg   && unset GNUPGHOME   && echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list   && apt-get update   && apt-get remove --purge --autoremove -y curl gnupg   && apt-get install -y java-21-amazon-corretto-jdk   && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-12-08 01:04:44  74.82MB 
# debian.sh --arch 'amd64' out/ 'bookworm' '@1734912000'
                        
                    

镜像信息

{
    "Id": "sha256:2dcfe13e93c6ae1138a3c9d6f849b76be430157a8c4f982bc5c64975ad6cc002",
    "RepoTags": [
        "maven:3.9.9-amazoncorretto-21-debian",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven:3.9.9-amazoncorretto-21-debian"
    ],
    "RepoDigests": [
        "maven@sha256:0297db3be9a5b563b0d886461224a0325ca3740cc4477fc49c5c647d6712499b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/maven@sha256:c305518ff98c2ffa1c9a89668b1a0668a91a1aff2cd28b47a927c38f82da404f"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-07T17:04:44Z",
    "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",
            "JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto",
            "MAVEN_HOME=/usr/share/maven",
            "MAVEN_CONFIG=/root/.m2"
        ],
        "Cmd": [
            "mvn"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/local/bin/mvn-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.description": "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.",
            "org.opencontainers.image.source": "https://github.com/carlossg/docker-maven",
            "org.opencontainers.image.title": "Apache Maven",
            "org.opencontainers.image.url": "https://github.com/carlossg/docker-maven"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 467842236,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/828338318bc0a1f116c5746b26660e2baf81eb5c9058993b48966a003d0b0e3a/diff:/var/lib/docker/overlay2/fbf68e73f52a6844cf16b4b4a1cddedf9af05a701c3e5f8fac0d7fd9f2209f28/diff:/var/lib/docker/overlay2/c6f70221e85af9545af8c4f9a05b9d68ad767b5d4c8c3c88a8a0547193214ba0/diff:/var/lib/docker/overlay2/73a698986d4ed7445e01f5b42c0918e27366ea0590ef7e67ec2d6025082f3ea4/diff:/var/lib/docker/overlay2/d7da656d9414ae961b292fa109d069e923b341eab550c2db09cb0ab256f4ae70/diff",
            "MergedDir": "/var/lib/docker/overlay2/b64829aca7806bca09dd86487d60c9cc07b8edb970ccf2df59a255b5aabce415/merged",
            "UpperDir": "/var/lib/docker/overlay2/b64829aca7806bca09dd86487d60c9cc07b8edb970ccf2df59a255b5aabce415/diff",
            "WorkDir": "/var/lib/docker/overlay2/b64829aca7806bca09dd86487d60c9cc07b8edb970ccf2df59a255b5aabce415/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:8b296f48696071aafb5a6286ca60d441a7e559b192fc7f94bb63ee93dae98f17",
            "sha256:19e2c17832ff5197665a753498f81c4f212b7f491856a1314c86cf8a86252f37",
            "sha256:72ad7991c518859da82dbc6961946ee5307488f7eeb6e428124e2e210db98ff9",
            "sha256:56a60b4dae85f1e454dfee0ea30c4ec895ca03cbc16f29be3fc6d8376ebfab0e",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:351da8040e6da50a6e0a6d63556bc7d7b4b3ba33757fda4ad9a01e1e17484096"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-06T10:59:41.20119308+08:00"
    }
}

更多版本

docker.io/maven:3.8.5-openjdk-17

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

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

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

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
108

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
119

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
98

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
197

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
154

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
100

docker.io/maven:3.8.7-openjdk-18

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

docker.io/maven:3.8.6-openjdk-8

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

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

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

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
36