# Setup discourse on Mac OS

**URL:** https://meta.discourse.org/t/setup-discourse-on-mac-os/49029
**Category:** Development
**Created:** [August 22, 2016, 9:42pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029 "2016-08-22T21:42:03Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [August 22, 2016, 9:42pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/1 "2016-08-22T21:42:03Z")

</div>

I’m following standard guide to install discourse on my local mac.  
After launching the setup tool `./discourse-setup` I’ve got error message:

`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. `  
Initially I’ve tried to install to my work directory inside `/Users`

Then I installed to `/var/discourse` folder, the same error.

And then I tried to add `/var` folder to Docker’s Sharing Files and got message  
`The path /var is reserved by Docker`

What am I missing here?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 22, 2016, 9:46pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/2 "2016-08-22T21:46:09Z")

</div>

Discourse uses Docker when installing in **production**.

For local install to thinker with, use this guide:

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-mac-os-x-for-development/15772):
>
> warning This guide covers installation instructions for a macOS development environment, for production guides see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on macOS to hack on and develop with? We’ll assume that you don’t have Ruby/Rails/Postgres/Redis installed on your Mac. Let’s begin rocket ! Install Discourse Dependencies You will need the following packages on your system: [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) or [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-build](https://github.com/sstephenson/ruby-build)[Ruby](https://www.ruby-lang.org/) (latest s…

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [August 23, 2016, 8:17am UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/3 "2016-08-23T08:17:52Z")

</div>

Well, it seems to me there should be a quick fix, using docker is the pleasure and convenience.

---

<div class="post-metadata">

### Author: ![Ishan\_Dutta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ishan_dutta/32/121571_2.png) [@Ishan\_Dutta](https://meta.discourse.org/u/Ishan_Dutta)
#### Post date: [August 29, 2016, 6:09pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/4 "2016-08-29T18:09:29Z")

</div>

Did you find the fix ? I am facing the same

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [August 29, 2016, 6:18pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/5 "2016-08-29T18:18:30Z")

</div>

No, I didn’t, have to work on remote host

---

<div class="post-metadata">

### Author: ![Ishan\_Dutta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ishan_dutta/32/121571_2.png) [@Ishan\_Dutta](https://meta.discourse.org/u/Ishan_Dutta)
#### Post date: [August 29, 2016, 6:23pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/6 "2016-08-29T18:23:25Z")

</div>

whats the difference?  
what if I consider localhost as the remote host ?

Edit:  
I don’t get it, do I need two /var directory ?

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [August 29, 2016, 6:25pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/7 "2016-08-29T18:25:24Z")

</div>

the remote host is linux

---

<div class="post-metadata">

### Author: ![Ishan\_Dutta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ishan_dutta/32/121571_2.png) [@Ishan\_Dutta](https://meta.discourse.org/u/Ishan_Dutta)
#### Post date: [August 29, 2016, 6:29pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/8 "2016-08-29T18:29:17Z")

</div>

So I won’t need a remote host if my parent host is linux right ?  
This sounds silly, there should be some workaround.  
Still I doubt if parent is a linux why wouldn’t docker say  
The path /var is reserved by Docker

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [August 29, 2016, 9:32pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/9 "2016-08-29T21:32:45Z")

</div>

Kind of misunderstanding, I’m ssh’ing to linux box, installed there docker and then discourse - that’s my development environment for now.

---

<div class="post-metadata">

### Author: ![Ishan\_Dutta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ishan_dutta/32/121571_2.png) [@Ishan\_Dutta](https://meta.discourse.org/u/Ishan_Dutta)
#### Post date: [August 29, 2016, 11:55pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/10 "2016-08-29T23:55:46Z")

</div>

I am only talking about development machine, say I have a linux box, installed docker and discourse. How does it matter whether I access it remotely from some other machine or open that machine directly.

EDIT:  
To add, In mac development environment I am able to create plugins and be able to run them from local server, why can’t I install it in development, why would I need a remote server to be able to install it.

EDIT2:  
found this: for non docker install  
`bundle exec rake plugin:install repo=<repo url>`

---

<div class="post-metadata">

### Author: ![johanrydstrom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johanrydstrom/32/121473_2.png) [@johanrydstrom](https://meta.discourse.org/u/johanrydstrom)
#### Post date: [October 19, 2016, 3:38pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029/11 "2016-10-19T15:38:49Z")

</div>

It might depend on version of OS X and/or docker, but on my machine /var is just a symlink to the real folder /private/var.

Changing the volume paths in containers/app.yml (or whatever your configuration file is) to something like:  
`  
volumes:

- volume:  
host: /private/var/discourse/shared/web-only  
guest: /shared
- volume:  
host: /private/var/discourse/shared/web-only/log/var-log  
guest: /var/log  
`

did it for me.
