Use --port-offset with docker image

Is it possible to set the --port-offset while running dgraph with docker?

something like

docker pull dgraph/dgraph:v1.1.0 --port-offset 2

BTW the reason I need this is that bash installer

curl -sSf | bash

keeps installing the latest version killing the workflow among our team as each new member has a newest version of dgraph

Not sure what you’re doing here. “docker pull” is a docker function to request images from the server. It can’t run params.

--port-offset works okay like this.

docker run -it -p (...) dgraph alpha \
--lru_mb=<typically one-third the RAM> \
-zero=HOSTIPADDR:5080 --my=HOSTIPADDR:7080 \
--port-offset 2
1 Like