Docker Community Forums

Share and learn in the Docker community.

Ejabberd user registration error

I have installed docker and ran ejabberd on it.

git clone https://github.com/processone/ejabberd.git
cd ejabberd
docker run --rm -v $(pwd):$(pwd) -w $(pwd) ejabberd/mix do deps.get, deps.compile, compile
docker run --rm -it -p 5222:5222 -p 5280:5280 -v $(pwd):$(pwd) -w $(pwd) --entrypoint="/usr/bin/iex" ejabberd/mix -S mix

Above commands successfully done and got Elixir interactive cli, where I ran below code to register a new user for ejabberd. There I am getting an error.

ejabberd_auth.try_register("test", "localhost", "passw0rd")

Error :
iex(1)> ejabberd_auth.try_register(“test”, “localhost”, “passw0rd”)
** (CompileError) iex:1: undefined function ejabberd_auth/0

Please anyone make a support on this.

I get a not allowed error, which my googling has indicated could be related to a hostname mismatch, su problem or a timeout!