# Docker install on MacOS

**URL:** <https://meta.discourse.org/t/docker-install-on-macos/60710>\
**Category:** Self-hosting\
**Created:** [2017 年 4 月 10 日午前 10:49 UTC](https://meta.discourse.org/t/docker-install-on-macos/60710 "2017-04-10T10:49:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![trillebar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trillebar/32/128867_2.png) [@trillebar](https://meta.discourse.org/u/trillebar)\
**Post date:** [2019 年 1 月 12 日午後 6:59 UTC](https://meta.discourse.org/t/docker-install-on-macos/60710/5 "2019-01-12T18:59:07Z")

</div>

I tried to run Discourse locally on my Mac.  
But not with any luck …  
(I have “masked” the data I actually used to test.com++)

```
myserver:discourse root# ./discourse-setup
./discourse-setup: line 93: free: command not found
./discourse-setup: line 116: [: : integer expression expected
./discourse-setup: line 125: [: : integer expression expected

Ports 80 and 443 are free for use
samples/standalone.yml -&gt; containers/app.yml
./discourse-setup: line 93: free: command not found
Found GB of memory and 8 physical CPU cores
./discourse-setup: line 197: [: : integer expression expected
./discourse-setup: line 201: [: : integer expression expected
./discourse-setup: line 205: 256 * : syntax error: operand expected (error token is " ")

Hostname for your Discourse? [discourse.example.com]: testforum.test.com
Email address for admin account(s)? [me@example.com,you@example.com]: admin@test.com
SMTP server address? [smtp.example.com]: send.test.com
SMTP port? [587]: 465
SMTP user name? [user@example.com]: admin@test.com
SMTP password? [pa$$word]: PasswordInClearText
Optional email address for setting up Let's Encrypt? (ENTER to skip) [me@example.com]:

Does this look right?

Hostname : testforum.test.com
Email : admin@test.com
SMTP address : send.test.com
SMTP port : 465
SMTP username : admin@test.com
SMTP password : PasswordInClearText

ENTER to continue, 'n' to try again, Ctrl+C to exit:
DISCOURSE_SMTP_PORT change failed.
DISCOURSE_SMTP_USER_NAME change failed.
DISCOURSE_SMTP_PASSWORD change failed.
web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?
web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?

Unfortunately, there was an error changing

-d This may happen if you have made unexpected changes.
myserver:discourse root#

```

I tried looking into lines 93,116 and 125 in and tried to execute the line mentioned:  
 ![37](https://global.discourse-cdn.com/meta/original/3X/7/7/77977fb909ecfab42dd099bb416014152d510490.png)  
and that failed with “-bash: free: command not found” - just as the error message says.

Has anyone got the docker image up and running on a Mac?

---

_[View the full topic](https://meta.discourse.org/t/docker-install-on-macos/60710)._
