Hi,
I don’t know if this is a Docker issue, Windows issue, or me being a newb issue. Maybe all, or maybe none (though probably the last one). Believe me please, I have read, and re-read, the deploy docs.
I’ve first tried running the “getting started” comand in cmd prompt:
docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:v20.03.0
Then in the Docker dashboard, I open a CLI window and try to give the following kinds of commands (for example):
dgraph live -s ./toy_schema
dgraph live -s C:\Users\user1\subfolder\toy_schema
dgraph live -s <C:\Users\user1\subfolder\toy_schema>
dgraph live -s c:/Users/user1/subfolder/toy_schema
These all fail. The cmd prompt is open to the folder where the schema file is, that’s why I tried first one, but it says “file or folder not found”. The second one, the Docker CLI makes the " \ " disappear, so that doesn’t work. And then it doesn’t like the <>. The last one, it just says “file or folder not found” again.
If I use the docker-compose.yml file instead, and run:
docker-compose up
in the cmd prompt, then again open the CLI window and run those commands, they all fail because of
Running transaction with dgraph endpoint: 127.0.0.1:9080
While trying to setup connection: context deadline exceeded. Retrying…
If it’s possible for either of these to work (hopefully I’m just doing something wrong), extension question: can this all be done automatically from one cmd prompt command, like say, adding something to the docker-compose.yml, that can execute the docker live command, or from a single cmd prompt command (I did see docker run can use /bin/bash -c to put together multiple dgraph commands) ??
EDIT: and yes I did share the C: drive, in Docker settings->resources->file sharing.