@ -33,20 +33,58 @@ If needed you can restart the stopped ejabberd container with:
docker restart ejabberd
```
### Creating admin user
### Registering an admin account
When the container is running (and thus ejabberd), you can exec commands inside the container. The api command-line tool can be used to exercise the API directly from the container, even if the API is not exposed to the outside world. Note: ejabberd configuration must allow api calls from loopback interface.
To create an admin user (or any other user), you can use the following command:
The default ejabberd configuration has already granted admin privilege
to an account that would be called `admin@localhost`,
so you just need to register such an account
to start using it for administrative purposes.
You can register this account using the `ejabberdctl` script, for example: