Running Garnet in Cluster Mode #325
-
Team, While i am running garnet docker in cluser mode i am getting following error Unable to initialize server due to exception: Access to the path '/app/cluster' is denied. please help me with right command Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Docker images typically run as non-root by default. Looks like write permission needs to be given to the docker run --name garnet -p 6379:6379 --ulimit memlock=-1 --user root ghcr.io/microsoft/garnet --cluster true |
Beta Was this translation helpful? Give feedback.
@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