Dgraph now works with Docker Desktop on Apple Silicon

Just thought I’d drop a note here that I was able to get Dgraph to run on the new Docker for Desktop on Apple Silicon. I guess things started working on the recent release (Docker Desktop for Apple silicon | Docker Documentation)

When starting Dgraph, with the default command, you’ll get a warning that Dgraph does not launch for the specified arch, but the image still starts.

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

However, this can be suppressed by passing --platform linux/amd64 into docker run.

Of course, it would be nice to be able to get rid of this warning as well:

/run.sh: line 16: dgraph-ratel: command not found

Looking forward to having an arm optimised image someday