# Docker install on MacOS

**URL:** https://meta.discourse.org/t/docker-install-on-macos/60710
**Category:** Self-hosting
**Created:** [April 10, 2017, 10:49am UTC](https://meta.discourse.org/t/docker-install-on-macos/60710 "2017-04-10T10:49:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kubudubu](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kubudubu](https://meta.discourse.org/u/kubudubu)
#### Post date: [April 10, 2017, 10:49am UTC](https://meta.discourse.org/t/docker-install-on-macos/60710/1 "2017-04-10T10:49:17Z")

</div>

Is it possible somehow to run working discourse on Docker in MacOS system? I have some issues with that, obtaining errors, such as:

```
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
/usr/local/bin/docker: Error response from daemon: Mounts denied: er.com/docker-for-mac/osxfs/#namespaces for more info.
.
r/discourse/shared/standalone/log/var-log
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.dock.
ERRO[0000] error getting events from daemon: net/http: request canceled 

```

It happens on ./launcher rebuild app command. Do you know what can I do to run docker container with app fully functional? Please help 🙂

---

<div class="post-metadata">

### Author: ![TheRojam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/therojam/32/128396_2.png) [@TheRojam](https://meta.discourse.org/u/TheRojam)
#### Post date: [January 6, 2019, 2:31pm UTC](https://meta.discourse.org/t/docker-install-on-macos/60710/2 "2019-01-06T14:31:45Z")

</div>

it seems that nobody cares about devs and ops which are using mac as their primary desktop system…

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [January 6, 2019, 2:46pm UTC](https://meta.discourse.org/t/docker-install-on-macos/60710/3 "2019-01-06T14:46:13Z")

</div>

I dont use docker on my dev machine on mac. I did directly setup various components using homebrew for easier version selection and postgress.app and mailcatcher. I also use puma-dev (which you can use with unicorn) to have discourse.tld support locally.

I have a few alias to start, stop, reset, swap dbs… but that’s all. Docker is overkill and will slow you down IMO.

---

<div class="post-metadata">

### Author: ![rafalp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rafalp/32/103814_2.png) [@rafalp](https://meta.discourse.org/u/rafalp)
#### Post date: [January 6, 2019, 3:22pm UTC](https://meta.discourse.org/t/docker-install-on-macos/60710/4 "2019-01-06T15:22:03Z")

</div>

I am a MacOs user and I had zero problems starting Discourse dev instance on my machine using Docker For Mac. I’ve cloned main repo and followed this guide:

> [@Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009):
>
> Developing using Docker Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container. white_check_mark Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly. x Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS. See also [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366) …

---

<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: [January 12, 2019, 6:59pm 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?
