The docker deployment also has
config.json and it’s mounted to the host.
In the base directory of your docker deployment, you should have the folder structure
volumes/app/mattermost/config and in there is the
config.json file for your container.
I just tried this feature again and it works very well, new users are automatically being added to the public channels! Let’s say your channels are named
public2, then this is what the settings needs to look like in your
Newly created users will then automatically be joined to this channels and will see them in the LHS menu:
To add existing members to existing channels, you can use the commandline tool
mmctl for doing that quickly. With a docker deployment, it’s also inside the container, so you’d have to access it using
# docker exec <yourcontainerid> mmctl
Mattermost offers workplace messaging across web, PC and phones with archiving, search and integration with your existing systems. Documentation available at https://docs.mattermost.com
mmctl requires authentication or a local socket (which is also not enabled by default on the docker deployments), so you should set the settings
true in your
config.json (see the path above), then restart the application container and afterwards you should be able to run the following command:
# docker exec <yourcontainerid> mmctl --local system version
Server version 188.8.131.52.8.1.1738519c0a6c648f3f0d5685040ab2c9.false
If this command returns your server version, you know it’s working and when this is the case, you can start adding users to the channels.
To list all users:
# docker exec <yourcontainerid> mmctl --local user list
wcq7ruhex7nz5msm8qdigpjexy: appsbot (appsbot@localhost)
ofb5ff4ytbnzjmqqy1gdkqpycr: boards (boards@localhost)
To list all channels:
# docker exec <yourcontainerid> mmctl --local channel list test
There are 4 channels on local instance
To add a user to a channel:
# docker exec <yourcontainerid> mmctl --local channel users add <teamname>:<channelname> <username>
And you can also create a small bashscript to add all listed users from above.
Let me know if this helps or if your require further information on any of these topics.