[solved] Mattermost Docker container restarting problem

Summary

I cannot start the mattermost container on Ubuntu. The container gives error and stays forever in restarting

Steps to reproduce

Version 5.7.0.
OS: Ubuntu 18.10
docker-compose.yml:
version: ‘3’
services:
mattermost:
image: “mattermost/mattermost-preview”
restart: “always”
container_name: intranet_mattermost
ports:
- 8065:8065
networks:
- devIntranet
networks:
devIntranet:

Starting the service using command

docker-compose up -d

Expected behavior

Access the mattermost via web browser and API via cURL by accessing the url http://192.168.240.59:8065/ (my IP)

Observed behavior

Using docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34de84443068 mattermost/mattermost-preview “/bin/sh -c ./docker…” About an hour ago Restarting (127) 41 seconds ago intranet_mattermost

Using docker logs --tail 50 --follow --timestamps mattermost-preview:
2019-03-11T21:05:50.265431030Z Starting platform
2019-03-11T21:05:50.265645376Z ./docker-entry.sh: line 18: /mm/mattermost/bin/mattermost: No such file or directory

When I try to enter the container using the command docker exec -it mattermost-preview /bin/bash, I am ejected from the container and when I try to access again, I get the following error (because the container is already restarting)
Error response from daemon: Container b15fd76ac44aad39ec74f4b5c1e7d8b7b6a22ea9aec4b56458dd4cebc7f62561 is not running

Solved. I resolved using the tag 5.8.0 when downloading the image.

1 Like

I’m having exactly the same issue. Did you install an older version of Mattermost? to solve the issue