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-imageutility 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-imageutility with themusl libctoolchain 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
envcommand from the Bash prompt: - Copy
env- The output shows the environment variable
JAVA_HOMEpointing 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-imageversion, run the following command from the Bash prompt: - Copy
native-image --version- The output shows the installed Oracle GraalVM
native-imageutility version information. - Calling
docker pullwithout 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--platformoption and eitherlinux/amd64orlinux/aarch64as follows: - Copy
docker pull --platform linux/aarch64 container-registry.o
上述内容均来自:
