Installing Using Docker
Run GridGain 9 in Docker containers, including the server and dedicated CLI images, and start a cluster with Docker Compose.
Prerequisites
Recommended Docker Version
GridGain is tested on the following Docker configuration:
Docker 26.1.3;
Docker compose 2.14.2
Docker container environment must follow other system requirements.
Recommended Operating System
GridGain is tested on the following systems:
Ubuntu 20.04
Ubuntu 22.04
CentOS 8
RockyLinux 9
Mac OS X 14.6
Windows 10
Other Linux flavors and newer versions are supported, but may have minor discrepancies in performance or stability.
When running on Linux, the following libraries are also required:
GNU C Library (glibc) version 2.29 or newer
GNU C++ Standard Library (libstdc++) which supports GLIBCXX_3.4.26 or newer. GLIBCXX_3.4.26 is included with GCC 9.1.0. For more information on version mapping, see the GNU Official Documentation.
Recommended Java Version
GridGain is tested on Oracle JDK 11, 17, 21, and 25 (LTS), as well as JDK 26 (STS). Other Java vendors are supported, but may have minor discrepancies in performance or stability.
Short-term support (STS) Java versions are supported only until the next STS release, Long-term support (LTS) versions are not affected by this policy.
Version Lifecycle
The information about versioning and lifecycle of GridGain 9 is available on the Versioning page.
Docker Image Variants
GridGain 9 Docker images are available in several variants based on different JDK versions. The default image (gridgain/gridgain9:latest, or a version tag such as gridgain/gridgain9:9.1.28) uses JDK 25. If you need a specific JDK version, add the JDK suffix to the version tag:
latest, 9.1.28, 9.1.28-openjdk25
JDK 25 (default)
LTS
9.1.28-openjdk21
JDK 21
LTS
9.1.28-openjdk17
JDK 17
LTS
9.1.28-openjdk11
JDK 11
LTS
9.1.28-openjdk26-amd64, 9.1.28-openjdk26-arm64
JDK 26
STS
Use the current release number in place of 9.1.28. The tags with an -amd64 or -arm64 suffix are the single-architecture images; the tags without a suffix work on both architectures, except JDK 26, which is published only as the two single-architecture tags.
The same version and JDK tags are available for the CLI image (gridgain/gridgain9-cli).
Running a Node
Run GridGain in a docker container using the docker run command. Docker will automatically pull the appropriate GridGain version:
This command launches a single GridGain node. After you run the command, you can check if GridGain is running in the container logs.
Configuring JVM Options
To configure JVM options such as heap size, garbage collection, or Java agents in Docker containers, use the GRIDGAIN9_EXTRA_JVM_ARGS environment variable, for example:
Running a Cluster
You can use the docker-compose file to start an entire cluster in docker. You can download a sample docker-compose file and run a 3-node cluster:
Download the docker-compose file.
Download the docker image:
Run the docker compose command.
3 nodes will start in docker and will be available from CLI tool that can be run locally. Remember to initialise the cluster from the command line tool before working with it.
Running CLI Tool in Docker
A dedicated lightweight CLI Docker image is available for managing GridGain 9 clusters. This image is significantly smaller than the full server image and is optimized for cluster administration tasks.
The CLI image includes:
GridGain 9 CLI tool with all management capabilities;
Essential utilities: bash, bind-tools (DNS utilities), less (pager), and netcat (network utilities);
Custom JRE built with all required Java modules;
Non-root user execution for enhanced security.
Using the CLI Docker Image
The CLI image can connect to GridGain 9 nodes running in the same Docker network:
This starts the CLI in interactive REPL mode. You can also run one-off commands:
Setting Up an Alias
To simplify CLI commands, you can set up a shell alias:
Then use it as:
Using CLI from the Server Image
The full server image also includes the CLI tool. You may want to use it if you only have the server image available.
Create a new network with the
network createcommand:Add any containers with nodes that are already running to the network:
Start the container with the GridGain CLI tool on the same network:
The CLI will be able to connect to the IP address of the node. If you are not sure what the address is, use the container inspect command to check it:
CLI Tool Work Folder
The CLI tool needs to store some data required for operation as described in the CLI Tool section.
For the dedicated CLI image, data is stored in /opt/gridgain9cli/work.
For the server image, data is stored in /opt/gridgain/work/gridgain9cli.
You can configure the directory by setting the following environment variables:
GRIDGAIN_CLI_WORK_DIRto configure the directory containing the CLI tool information;GRIDGAIN_WORK_DIRto configure the GridGain 9workdirectory, including the CLI tool information;GRIDGAIN_HOMEto configure the home directory of GridGain 9, including all GridGain parameters.
Software Identification
The GridGain Docker image includes a SWID tag. It is located in /usr/lib/swidtag/ inside the container.
See Software Identification for details.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

