How to change whitelist

What I want to do

I want to use Ratel to change schema

What I did

I use docker run a alpha and a zero node,then I entry the alpha with

docker exec -it 3d54781ed66b bash

Next,I use

dgraph alpha --security whitelist=


dgraph alpha --security whitelist=

but I get the same error

2023/06/08 08:40:28 Cannot acquire directory lock on "p".  Another process is using this Badger database. error: resource temporarily unavailable
Error while creating badger KV posting store
	/home/runner/go/pkg/mod/[email protected]/command.go:830*Command).ExecuteC
	/home/runner/go/pkg/mod/[email protected]/command.go:914*Command).Execute
	/home/runner/go/pkg/mod/[email protected]/command.go:864
root@3d54781ed66b:/dgraph# exit

dgraph version

How are you spinning up your cluster? I’m guessing you are entering a container that is already running the alpha server, so it is complaining that is cannot acquire a lock on the p directory (because the server is already using this directory).

Here is a sample docker compose file to set up the cluster. If you want to add a whitelist you can add the --security flag to the alpha initialization command.

yes ,you’re right .I 'm runing a alpha instance .but if I don’t run it ,I could not use the cLI,such as set the whitelist.

The whitelist is a flag param. Not a CLI command. All flags must be set and “boot” time.