Skip to content

Use Dragonwell 17 docker images

Accelerator1996 edited this page Feb 3, 2023 · 17 revisions

Naming convention of Dragonwell images

Below are Docker images published on Aliyun and DockerHub.You can obtained images after 17.0.4.0.4 by yourself according to the rules.

${DRAGONWELL_VERSION}-${EDITION}-${OPT}-${OS}(-slim)?
  • DOCKER REPOSITORY: dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell or registry.hub.docker.com/alibabadragonwell/dragonwell
  • DRAGONWELL_VERSION: such as 17.0.4.0.4.8, you can also write the latest version number 17 which will point to the latest version.
  • EDITION: standard
  • OPT: ga\d+
  • OS: anolis/centos/ubuntu/alpine
  • slim: the image whose tag has -slim postfix is specially trimmed for smaller image size, and its functionality may be incomplete for your application

Current supported platforms

Dragonwell OS Architecture Edition
17 centos amd64,arm64 standard
17 ubuntu amd64,arm64 standard
17 anolis amd64,arm64 standard
17 alpine amd64,arm64 standard

List of Dragonwell images

https://hub.docker.com/r/alibabadragonwell/dragonwell/tags

List of Dragonwell images before 17.0.4.0.4

Below are Docker images published on Aliyun and DockerHub. You may raise a Dragonwell bug to ask for an image of your OS/arch.
The images listed below are images before 17.0.4.0.4, which will be obtained by yourself in the future according to the rules.

Image:Tag arch OS slim?
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-standard-17.0.4.0.4.8_jdk-17.0.4-ga_alpine_x86_64 x86_64 alpine No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-standard-17.0.4.0.4.8_jdk-17.0.4-ga_aarch64_slim aarch64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-standard-17.0.4.0.4.8_jdk-17.0.4-ga_x86_64_slim x86_64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-standard-17.0.4.0.4.8_jdk-17.0.4-ga_aarch64 aarch64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-standard-17.0.4.0.4.8_jdk-17.0.4-ga_x86_64 x86_64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.3.0.3.7-GA_alpine_x86_64 x86_64 alpine No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.3.0.3.7-GA_aarch64_slim aarch64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.3.0.3.7-GA_x86_64_slim x86_64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.3.0.3.7-GA_aarch64 aarch64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.3.0.3.7-GA_x86_64 x86_64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.2.0.2.8_jdk-17.0.2-ga_alpine_x86_64 x86_64 alpine No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.2.0.2.8_jdk-17.0.2-ga_aarch64_slim aarch64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.2.0.2.8_jdk-17.0.2-ga_x86_64_slim x86_64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.2.0.2.8_jdk-17.0.2-ga_aarch64 aarch64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.2.0.2.8_jdk-17.0.2-ga_x86_64 x86_64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.1.0.1.12_jdk-17.0.1-ga_alpine_x86_64 x86_64 alpine No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.1.0.1.12_jdk-17.0.1-ga_aarch64_slim aarch64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.1.0.1.12_jdk-17.0.1-ga_x86_64_slim x86_64 centos Yes
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.1.0.1.12_jdk-17.0.1-ga_aarch64 aarch64 centos No
registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-17.0.1.0.1.12_jdk-17.0.1-ga_x86_64 x86_64 centos No

Dockerfile of image

https://github.com/dragonwell-releng/dragonwell-containers

Pull the image

For example(if the current latest version is 17.0.4.0.4+8):

# 17.0.4.0.4.8-extended-ga-anolis
docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17
docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17-anolis
docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17-standard-ga-anolis
docker pull dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17.0.4.0.4.8-standard-ga-anolis

Run in command line

Just like other images

$ sudo docker run -v $PWD:$PWD -it --rm dragonwell-registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:17.0.4.0.4.8-standard-ga-anolis /bin/sh

FROM as base image

Just change the FROM line like below:

FROM dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17.0.4.0.4.8-standard-ga-anolis
# balabala...

Get JDK from image

COPY --from=dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:17.0.4.0.4.8-standard-ga-anolis /opt/java/openjdk /opt