Skip to content

Running Garnet in Cluster Mode #325

Answered by akoken
sarathks2103 asked this question in Q&A
Discussion options

You must be logged in to vote

@sarathks2103

Docker images typically run as non-root by default. Looks like write permission needs to be given to the cluster directory in Dockerfile. As a workaround, consider setting the root user using the --user flag in your docker command, as demonstrated below.

docker run --name garnet -p 6379:6379 --ulimit memlock=-1 --user root ghcr.io/microsoft/garnet --cluster true

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@badrishc
Comment options

@vazois
Comment options

@akoken
Comment options

Answer selected by badrishc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants