# Running Discourse on Docker for Mac

**URL:** <https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682>\
**Category:** Development\
**Created:** [2016 年9 月 3 日 19:28 UTC](https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682 "2016-09-03T19:28:23Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

作者： ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)\
发布日期： [2018 年1 月 13 日 20:06 UTC](https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682/24 "2018-01-13T20:06:58Z")

</div>

Since `up` is not in the `bin/docker` directory with the rest of the scripts, `$SCRIPT_PATH` is incorrect and thus `$SCRIPT_PATH/bundle` does not exist.

The easiest fix would be to only start `docker-sync` and the docker containers in `up`, and run the rest of the scripts separately.

For example,

```bash
$ ./up

# this is the initialization process in `boot_dev --init`
$ discourse/d/bundle install
$ discourse/d/rake db:migrate
$ discourse/d/rake admin:create

$ discourse/d/rails s

```

I hope it works this time, let me know how it goes.

---

_[View the full topic](https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682)._
