diff --git a/操作文档/6、制作JDK21的Docker镜像.md b/操作文档/6、制作JDK21的Docker镜像.md index 260d3996..dfb17f67 100644 --- a/操作文档/6、制作JDK21的Docker镜像.md +++ b/操作文档/6、制作JDK21的Docker镜像.md @@ -1,3 +1,46 @@ +### 零、阿里巴巴 $dragonwell$ $JDK21$版本: + +```shell +docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:21 +``` + + + +跑起来看看 + +```shell +docker run -d dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:21 sh -c "tail -f /dev/null" + +[root@iZ2ze7rbr33s5tbblr53f6Z ~]# docker ps -a | grep dragonwell +15d2a7d3cc23 dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:21 "jshell" 23 seconds ago Exited (0) 20 seconds ago busy_fermat + +docker exec -it 78175345e657 sh + +sh-4.4# cat /etc/os-release +NAME="Alibaba Cloud Linux" +VERSION="3 (OpenAnolis Edition)" +ID="alinux" +ID_LIKE="rhel fedora centos anolis" +VERSION_ID="3" +VARIANT="OpenAnolis Edition" +VARIANT_ID="openanolis" +ALINUX_MINOR_ID="2104" +ALINUX_UPDATE_ID="10" +PLATFORM_ID="platform:al8" +PRETTY_NAME="Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)" +ANSI_COLOR="0;31" +HOME_URL="https://www.aliyun.com/" + + +sh-4.4# java -version +openjdk version "21.0.4.0.4" 2024-07-16 +OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-21.0.4.0.4+7-GA (build 21.0.4.0.4) +OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-21.0.4.0.4+7-GA (build 21.0.4.0.4, mixed mode, sharing) + +``` + + + ### 一、下载$JDK21$ > https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz @@ -89,8 +132,6 @@ ENV PATH=$JAVA_HOME/bin:$PATH -### - ```shell docker build -t dsideal/jdk:21 . ```