# Install Discourse for development using Docker

**URL:** https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009
**Category:** Developer Guides
**Tags:** docker, dev-install, how-to
**Created:** [November 16, 2018, 9:40am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009 "2018-11-16T09:40:04Z")
**Posts on this page:** 1
**Showing post:** 160

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [May 2, 2021, 7:33am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009/160 "2021-05-02T07:33:43Z")

</div>

Hi, i think we should make a description about the Ember-CLI here, and a shourcut for below command without enter into docker container.

 ![Screenshot from 2021-05-02 15-27-08](https://global.discourse-cdn.com/meta/original/3X/4/b/4baecec175099301dac491689ffbb47449e93176.png)

And i can’t get it work by execute above commands into container, seems container didn’t expose the 4200 port.  
 ![Screenshot from 2021-05-02 15-48-51](https://global.discourse-cdn.com/meta/optimized/3X/2/f/2f970cf4ddbc1c23804160e4d9c28c899388e081_2_690x35.png)

Manual expose the port 4200 by edit `d/boot_dev`:

 ![Screenshot from 2021-05-02 16-09-16](https://global.discourse-cdn.com/meta/original/3X/6/f/6f5a0a6a1473eaeee36def0717709dac2ab1b1e0.png)

After reboot container I access `localhost:4200` got this:

 ![Screenshot from 2021-05-02 16-03-33](https://global.discourse-cdn.com/meta/original/3X/2/c/2c331a15df91a77c7e9372ec0b0d9995cae766a6.png)

```plaintext
discourse@discourse:/tmp$ cat error.dump.cab4cc444229d44fc0fce2deb8695880.log 
=================================================================================

ENV Summary:

  TIME: Sun May 02 2021 08:01:12 GMT+0000 (Coordinated Universal Time)
  TITLE: ember
  ARGV:
  - /usr/bin/node
  - /src/app/assets/javascripts/node_modules/.bin/ember
  - server
  - --proxy
  - http://localhost:3000
  EXEC_PATH: /usr/bin/node
  TMPDIR: /tmp
  SHELL: /bin/bash
  PATH:
  - /tmp/yarn--1619942449179-0.1910991449592403
  - /src/app/assets/javascripts/discourse/node_modules/.bin
  - /home/discourse/.config/yarn/link/node_modules/.bin
  - /src/app/assets/javascripts/node_modules/.bin
  - /home/discourse/.yarn/bin
  - /usr/libexec/lib/node_modules/npm/bin/node-gyp-bin
  - /usr/lib/node_modules/npm/bin/node-gyp-bin
  - /usr/bin/node_modules/npm/bin/node-gyp-bin
  - /usr/local/sbin
  - /usr/local/bin
  - /usr/sbin
  - /usr/bin
  - /sbin
  - /bin
  PLATFORM: linux x64
  FREEMEM: 8603062272
  TOTALMEM: 41962496000
  UPTIME: 612639
  LOADAVG: 3.32177734375,2.19580078125,1.47900390625
  CPUS:
  - Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3301
  - Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3300
  - Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3300
  - Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3301
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.15.0
  - brotli: 1.0.7
  - cldr: 35.1
  - http_parser: 2.9.3
  - icu: 64.2
  - modules: 64
  - napi: 7
  - nghttp2: 1.41.0
  - node: 10.23.0
  - openssl: 1.1.1g
  - tz: 2019c
  - unicode: 12.1
  - uv: 1.34.2
  - v8: 6.8.275.32-node.59
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: [undefined]
  - code: ECONNREFUSED
  - codeFrame: [undefined]
  - errorMessage: connect ECONNREFUSED 127.0.0.1:3000
  - errorType: [undefined]
  - location:
    - column: [undefined]
    - file: [undefined]
    - line: [undefined]
  - message: connect ECONNREFUSED 127.0.0.1:3000
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: [undefined]
  - originalErrorMessage: [undefined]
  - stack: Error: connect ECONNREFUSED 127.0.0.1:3000
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

=================================================================================

```

After edit `bin/ember-cli` PORT to `3000` to `9292` all working.  
 ![Screenshot from 2021-05-02 17-55-24](https://global.discourse-cdn.com/meta/optimized/3X/5/a/5a421212921a5928c8fe55581091db4fdec8d2b6_2_690x51.png)

Seems the `ember-cli` bash unable work with `ENV["UNICORN_PORT"]` .

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009)._
