Dgraph cannot find my config file

Hey @praneelrathore, the dgraph zero command will look for the config.yaml file inside the container. Either you can copy the file in the container, or mount the volume which stores the config file.
The following command should work if the config.yaml is in your current working directory

docker run -it -p 5080:5080 --network dgraph_default -p 6080:6080 -v $(pwd):$(pwd) -w $(pwd) dgraph/dgraph:latest dgraph zero --config ./config.yaml

This config.yaml file is stored in my present working directory.

2 Likes