You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsProject/Doc/6、JDK21的Docker镜像.md

1.3 KiB

零、阿里巴巴 dragonwell JDK21版本:

docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:21

跑起来看看

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)