Trial Mattermost using Docker#
Available on all plans
self-hosted deployments
Tip
Looking to deploy Mattermost in a production environment? See the Docker deployment documentation for details.
Preview Mattermost using Docker#
Using the Mattermost Docker Preview Image is the fastest way to trial Mattermost in Preview Mode, and explore product functionality on a single local machine.
Important
This local image is self-contained (i.e., it has an internal database and works out of the box). Dropping a container using this image removes data and configuration as expected. You can see the configuration settings documentation to learn more about customizing your trial deployment.
Preview Mode shouldn’t be used in a production environment, as it uses a known password string, contains other non-production configuration settings, has email disabled, keeps no persistent data (all data lives inside the container), and doesn’t support upgrades.
If you are planning to use the calling functionality in Preview Mode on a non-local environment, you should ensure that the server is running on a secure (HTTPs) connection and that the network requirements to run calls are met.
Install Docker.
Once you have Docker, run the following command in a terminal window:
docker run --name mattermost-preview -d --publish 8065:8065 --publish 8443:8443 mattermost/mattermost-preview
When Docker is done fetching the image, navigate to
http://localhost:8065/
in your browser to preview Mattermost.Select Don’t have an account in the top right corner of the screen to create an account for your preview instance. If you don’t see this option, ensure that the Enable open server configuration setting is enabled. This setting is disabled for self-hosted Mattermost deployments by default.
Log in to your preview instance with your user credentials.
Troubleshooting your preview deployment#
The Preview Mode Docker instance for Mattermost is designed for product evaluation, and sets SendEmailNotifications=false
so the product can function without enabling email. See the Configuration Settings documentation to customize your deployment.
To update your Mattermost preview image and container, you must first stop and delete your existing mattermost-preview container by running the following commands:
docker pull mattermost/mattermost-preview
docker stop mattermost-preview
docker rm mattermost-preview
Once the new image is pulled and the container is stopped and deleted you need to run the docker run
command from above.
Important
On Linux, include sudo
in front of all docker
commands.
To access a shell inside the container, run the following command:
docker exec -ti mattermost-preview /bin/bash