If you removed it, and verified it was removed. It does not make sense to continue everything as before.
I do not know how you are doing things, whether you are entering the container, whether you are using exec, if you are deleting this folder locally. If you can give more details. I’ll help you. So, I’ll assume you did not use Docker’s exec. So there you go.
Run the compose, open another terminal and do the following.
Assuming that 765511b2869e is the right container.
docker exec 765511b2869e sh -c 'rm -rf /dgraph/* '
Stop the Docker compose, and start again.
This should work, but if it does not work out. You can try a “silly hack”. Change the volume name to “DgraphV2” or something like that in your docker-compose.yml.
But this will create a new volume in your Docker. It is recommended that you use the Docker Prune commands to clean up unused volumes.
volumes:
- type: volume
source: dgraphV2 # <== here
target: /dgraph
volumes:
dgraphV2: # <== here
But you can search for the volume used and delete it directly. Instead of renaming the volume. docker volume rm | Docker Documentation