I created my local dgraph instance through docker-compose, as suggested in the installation instructions. The given command doesn’t seem to take this case into account.
I tried to tweak the command using my limited docker knowledge without any success.
Could the doc be updated?
docker ps:
sudo docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5bd437edd576 dgraph/dgraph:latest "dgraph zero --my=ze…" 29 hours ago Up 20 minutes 0.0.0.0:5080->5080/tcp, 8080/tcp, 0.0.0.0:6080->6080/tcp, 9080/tcp dgraph01_zero_1
My altered command:
docker exec -it dgraph01_zero_1 dgraph live -r 1million.rdf.gz --zero localhost:5080
2018/02/28 02:48:34 While trying to setup connection to Dgraph server. error: context deadline exceeded
Of course, 1million.rdf.gz is present in the current directory.
From the output of docker ps, I don’t see dgraph server process running. Are you sure it is running? Could you share the docker_compose.yml that you used?
The command assumes that these instructions were followed to run Dgraph.
The dgraph local instance is working fine, all previous steps of the tour went well.
Sorry, wrong docker ps (extra -l)
Complete ps is:
sudo docker ps
Password:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5bd437edd576 dgraph/dgraph:latest "dgraph zero --my=ze…" 32 hours ago Up 4 hours 0.0.0.0:5080->5080/tcp, 8080/tcp, 0.0.0.0:6080->6080/tcp, 9080/tcp dgraph01_zero_1
17d3f7b58f2c dgraph/dgraph:latest "dgraph server --my=…" 32 hours ago Up 4 hours 0.0.0.0:8080->8080/tcp, 0.0.0.0:9080->9080/tcp dgraph01_server_1
41ee4fbeb433 dgraph/dgraph:latest "dgraph-ratel" 32 hours ago Up 4 hours 8080/tcp, 0.0.0.0:8000->8000/tcp, 9080/tcp dgraph01_ratel_1
Processing 1million.rdf.gz
2018/02/28 06:06:14 open 1million.rdf.gz: no such file or directory
which makes sense. 1million.rdf.gz is on my local computer, not in the docker instance… Guess I’ll docker exec wget… [update] wget is not in the docker env (and that’s good)