Comment on page
Running Grainite in Docker
Once your environment is set up, use these instructions to spin up a Grainite server on your laptop or virtual machine.
Starting the Grainite docker container
Run the below command to download the Grainite server docker image and start running it. If you are developing an application for a cluster running a specific known version, you should replace
latestwith the Grainite version of the cluster you'll be deploying to (e.g.
gx start --image quay.io/grainite/single:latest
Make sure to create a directory called dx in your $HOME. You can then download and start Grainite using Podman.
If Podman is not present in your RedHat image, you can install it using
sudo yum install podman
You can then download and start the Grainite container using
sudo podman run -d --restart always --shm-size=2g --hostname=grainite --name=grainite -p 5064:5064 -p 5056:5056 -p 5057:5057 -v $HOME/dx:/home/grainite/dx:z quay.io/grainite/single:latest