GraalVM containers
GraalVM also comes packaged as a Docker container. It can be directly pulled from the Docker Registry (ghcr.io) or can be used as a base image to build custom images. Here are some of the key commands to use GraalVM containers:
- To pull the Docker image:
docker pull ghcr.io/graalvm/graalvm-ce:latest
- To run the container:
docker run -it ghcr.io/graalvm/graalvm-ce:latest bash
- To use in the Dockerfile as a base image:
FROM ghcr.io/graalvm/graalvm-ce:latest
We will be exploring more about GraalVM containers in Chapter 9, GraalVM Polyglot – LLVM, Ruby, and WASM, when we talk about building microservices on GraalVM.