@pawan sorry for misunderstanding, i just saw the description of issue#1325, i did use the below command to run the docker image:
mkdir -p ~/dgraph
docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph dgraph --bindall=true
So, yes i did mount the volume and it is working fine for me.