sevenmaxis reported encountering Docker mount errors while attempting to install Discourse locally on macOS, specifically noting that the /var path is reserved by Docker and cannot be shared. Although they tried installing in /Users and /var/discourse, the issue persisted. Falco clarified that Docker is intended for production and suggested a specific guide for local development. sevenmaxis expressed a preference for using Docker despite the complexity. Ishan_Dutta joined the thread facing similar issues, leading to a discussion about the necessity of a remote Linux host versus local installation. sevenmaxis clarified they were SSHing into a Linux box for development, while Ishan_Dutta questioned why a remote host was needed if the parent machine was Linux, eventually finding a non-Docker plugin installation method. Finally, johanrydstrom provided a solution for macOS users, explaining that /var is a symlink to /private/var and recommending that users update their containers/app.yml volume paths to use /private/var instead to resolve the mount denial.
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
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
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>