# \[solved\] Mattermost Docker container restarting problem

**URL:** <https://forum.mattermost.com/t/solved-mattermost-docker-container-restarting-problem/6837>\
**Category:** Troubleshooting\
**Created:** [March 12, 2019, 12:54pm UTC](https://forum.mattermost.com/t/solved-mattermost-docker-container-restarting-problem/6837 "2019-03-12T12:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulus](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@paulus](https://forum.mattermost.com/u/paulus)\
**Post date:** [March 12, 2019, 12:54pm UTC](https://forum.mattermost.com/t/solved-mattermost-docker-container-restarting-problem/6837/1 "2019-03-12T12:54:22Z")

</div>

#### 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/](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`

---

<div class="post-metadata">

**Author:** ![paulus](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@paulus](https://forum.mattermost.com/u/paulus)\
**Post date:** [March 12, 2019, 8:14pm UTC](https://forum.mattermost.com/t/solved-mattermost-docker-container-restarting-problem/6837/2 "2019-03-12T20:14:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tobor](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tobor](https://forum.mattermost.com/u/tobor)\
**Post date:** [July 16, 2022, 10:26am UTC](https://forum.mattermost.com/t/solved-mattermost-docker-container-restarting-problem/6837/3 "2022-07-16T10:26:25Z")

</div>

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

> [@Server deployment issues](https://forum.mattermost.com/t/server-deployment-issues/13696):
>
> I have followed the instructions closely to install matter most as a docker on my server. However my browser cannot connect to the matter most server. If i type docker ps after starting the server is appears to be constantly restarting. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 812363936ce6 nginx:alpine "/docker-entrypoint.…" 9 minutes ago Restart…
