# Local Machine Setup using Docker not working

**URL:** <https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082>\
**Category:** Troubleshooting\
**Created:** [January 11, 2021, 9:51pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082 "2021-01-11T21:51:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rara](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@rara](https://forum.mattermost.com/u/rara)\
**Post date:** [January 11, 2021, 9:51pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/1 "2021-01-11T21:51:10Z")

</div>

#### Summary

The instructions on the [Local Machine Setup using Docker](https://docs.mattermost.com/install/docker-local-machine.html) page, to be used for quick mattermost evaluation on a docker host, are not working.

#### Steps to reproduce

On docker host, run the specified command (ie “docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview”).

#### Expected behavior

A mattermost service should have been running on my host on port 8065.

#### Observed behavior

The container had exited with error code 1. Looking in the logs, I have the following (trying to strip out irrelevant messages):

```
2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Creating database mattermost_test
2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Creating user mmuser
2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Giving user mmuser access to schema mattermost_test

2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Stopping temporary server
2021-01-11T21:14:51.810197Z 0 [Note] Giving 0 client threads a chance to die gracefully
[...]
2021-01-11T21:14:53.625329Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12617575
[...]
2021-01-11 21:14:53+00:00 [Note] [Entrypoint]: Temporary server stopped

2021-01-11 21:14:53+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

[...]
2021-01-11T21:14:53.994402Z 0 [Note] mysqld (mysqld 5.7.32) starting as process 7 ...
[...]
2021-01-11T21:14:54.120327Z 0 [Note] mysqld: ready for connections.
Version: '5.7.32' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
Updating CA certificates
Starting platform
Error: failed to load configuration: unable to load on store creation: parsing error at line 109, character 42: json: cannot unmarshal string into Go struct field TeamSettings.TeamSettings.ExperimentalDefaultChannels of type []string
Usage:
  mattermost [flags]
  mattermost [command]

Available Commands:
  channel Management of channels
[...]
```

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [January 11, 2021, 11:27pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/2 "2021-01-11T23:27:16Z")

</div>

Hello, @rara I’m sorry to hear you’re having issues, I hope we can help!

@jasonblais does this look like it’s a build error with the syntax to you as well?

---

<div class="post-metadata">

**Author:** ![rara](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@rara](https://forum.mattermost.com/u/rara)\
**Post date:** [January 12, 2021, 12:31am UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/3 "2021-01-12T00:31:22Z")

</div>

If it helps, I tried the older version of the docker image (mattermost-preview:5.26.0) and it worked fine. That might help locate the problem.

So it’s not urgent for me, anymore. But it might be good to fix this for your next release.

---

<div class="post-metadata">

**Author:** ![jasonblais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jasonblais/32/720_2.png) [@jasonblais](https://forum.mattermost.com/u/jasonblais)\
**Post date:** [January 12, 2021, 5:38am UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/4 "2021-01-12T05:38:44Z")

</div>

Looks like something may have gone wrong. I’ll share with our DevOps team.

Thanks for reporting it @rara, and glad to hear a previous version is working fine for you!

Edit: I’ll post back here once I’ve heard back from the team.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [January 12, 2021, 2:44pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/5 "2021-01-12T14:44:56Z")

</div>

Sounds good, thank you!

---

<div class="post-metadata">

**Author:** ![Ninofy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ninofy/32/4488_2.png) [@Ninofy](https://forum.mattermost.com/u/Ninofy)\
**Post date:** [January 16, 2021, 12:38pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/6 "2021-01-16T12:38:48Z")

</div>

I have the same error when starting the newest version on docker:

Error: failed to load configuration: unable to load on store creation: parsing error at line 109, character 42: json: cannot unmarshal string into Go struct field TeamSettings.TeamSettings.ExperimentalDefaultChannels of type string stderr

Older version still works.

---

<div class="post-metadata">

**Author:** ![jasonblais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jasonblais/32/720_2.png) [@jasonblais](https://forum.mattermost.com/u/jasonblais)\
**Post date:** [January 17, 2021, 4:36pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/7 "2021-01-17T16:36:26Z")

</div>

Thanks for letting us know! The issue was escalated last week, and our build engineer will be looking at this error soon.

---

<div class="post-metadata">

**Author:** ![harshil1712](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/harshil1712/32/4529_2.png) [@harshil1712](https://forum.mattermost.com/u/harshil1712)\
**Post date:** [January 27, 2021, 6:54am UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/8 "2021-01-27T06:54:02Z")

</div>

Hello,

I am trying to run it on macOS and I am getting the same errors.

---

<div class="post-metadata">

**Author:** ![braingu-matt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/braingu-matt/32/4550_2.png) [@braingu-matt](https://forum.mattermost.com/u/braingu-matt)\
**Post date:** [February 3, 2021, 2:35pm UTC](https://forum.mattermost.com/t/local-machine-setup-using-docker-not-working/11082/9 "2021-02-03T14:35:33Z")

</div>

This MR is currently up to fix the issue: [Fix ExperimentalDefaultChannels by icelander · Pull Request #57 · mattermost/mattermost-docker-preview · GitHub](https://github.com/mattermost/mattermost-docker-preview/pull/57)
