Welcome to Dgraph

I am running dgraph through docker. after running docker-compose when I type dgraph zero it shows dgraph command not found. why?