ELI5 Ratel not working continued

Following along with pt 1 tutorial when I go to open

Terminal 1: docker run --rm -it -p 8000:8000 -p 8080:8080 -p 9080:9080 dgraph/standalone
Terminal 2: docker run dgraph/ratel


Adjusted to:

Terminal 1: docker run --rm -it   -p 9080:9080 dgraph/standalone
Terminal 2: docker run dgraph/ratel -p 8000:8000 -p 8000:8000

docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "-p": executable file not found in $PATH: unknown.

in docker, you must put docker flags before the image to be used. Any flags after are given to the entrypoint.

You meant to run:

docker run -p 9080:9080 -p 8080:8080 dgraph/standalone
docker run -p 8000:8000 dgraph/ratel

…or better yet, just run dgraph and do not run ratel yourself. You can just use http://play.dgraph.io/?latest and connect to

1 Like

I see I’m still a bit wet behind the ears with docker.

Docker isn’t hard, actually it makes life a ton easier. You should take a time to master it - something like a month focussed on it before using any software (like Dgraph). Use Docker is like using VMs daily.

There are some topics like network, storage sharing, resources management and so on. It is much like administering VMs, although they are not the same thing.

One way I quickly learn how third-party software works is by reading its dockerfiles. Through them you can understand what will be exposed, what you can use and etc. Sometimes I read more YAMLs than the documentation itself and I am well served. But docs still the best source indeed. What I mean is, if you are able to read the source (root files like docker-compose.yaml, dockerfile) of the images, you have already mastered Docker.

1 Like