docker pull container-registry.oracle.com/graalvm/jdk:17
FROM container-registry.oracle.com/graalvm/jdk:17
Pulling Images
- To pull the container image for Oracle GraalVM JDK for a specific JDK feature version, e.g., 17, run:
- Copy
docker pull container-registry.oracle.com/graalvm/jdk:17
- Alternatively, to use the container image as the base image in your Dockerfile, use:
- Copy
FROM container-registry.oracle.com/graalvm/jdk:17
- To pull the container image for Oracle GraalVM
native-image
utility for a specific JDK feature version, e.g., 17, run: - Copy
docker pull container-registry.oracle.com/graalvm/native-image:17
- Alternatively, to pull the container image for Oracle GraalVM
native-image
utility with themusl libc
toolchain to create fully statically linked executables, run: - Copy
docker pull container-registry.oracle.com/graalvm/native-image:17-muslib
- Alternatively, to use the container image as the base image in your Dockerfile, use:
- Copy
FROM container-registry.oracle.com/graalvm/native-image:17-muslib
- To verify, start the container and enter the Bash session:
- Copy
docker run -it --rm --entrypoint /bin/bash container-registry.oracle.com/graalvm/native-image:17
- To check the version of Oracle GraalVM and its installed location, run the
env
command from the Bash prompt: - Copy
env
- The output shows the environment variable
JAVA_HOME
pointing to the installed Oracle GraalVM version and location.
To check the Java version, run the following command from the Bash prompt: - Copy
java -version
- The output shows the installed Oracle GraalVM Java runtime environment and version information.
To check thenative-image
version, run the following command from the Bash prompt: - Copy
native-image --version
- The output shows the installed Oracle GraalVM
native-image
utility version information. - Calling
docker pull
without specifying a processor architecture pulls container images for the processor architecture that matches your Docker client. To pull container images for a different platform architecture, specify the desired platform architecture with the--platform
option and eitherlinux/amd64
orlinux/aarch64
as follows: - Copy
docker pull --platform linux/aarch64 container-registry.o
上述内容均来自: