# How to run development mode in docker

**URL:** <https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171>\
**Category:** Kibana\
**Created:** [July 12, 2019, 8:49am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171 "2019-07-12T08:49:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony21177](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony21177/32/56161_2.png) [@tony21177](https://discuss.elastic.co/u/tony21177)\
**Post date:** [July 12, 2019, 8:49am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/1 "2019-07-12T08:49:30Z")

</div>

Hi,  
I want to know how to run development mode in docker.  
In my DockerFile the base image is [docker.elastic.co/kibana/kibana:6.8.0](http://docker.elastic.co/kibana/kibana:6.8.0)  
and the last line CMD /usr/local/bin/kibana-docker  
how shold I modify so that the running kibana is development mode?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 12, 2019, 6:19pm UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/2 "2019-07-12T18:19:52Z")

</div>

You need to start up kibana with the `--dev`. See [https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#customizing-configkibanadevyml](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#customizing-configkibanadevyml)

---

<div class="post-metadata">

**Author:** ![tony21177](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony21177/32/56161_2.png) [@tony21177](https://discuss.elastic.co/u/tony21177)\
**Post date:** [July 14, 2019, 4:29am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/3 "2019-07-14T04:29:50Z")

</div>

So I need to change the content of kibana-docker script?  
I have tried to add arge like  
CMD [‘kibana-docker’,’- -dev’]  
But it didn’t work

---

<div class="post-metadata">

**Author:** ![tony21177](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony21177/32/56161_2.png) [@tony21177](https://discuss.elastic.co/u/tony21177)\
**Post date:** [July 15, 2019, 1:52am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/4 "2019-07-15T01:52:18Z")

</div>

And it always show  
ERROR Extra serve options "--dev" must have a value

---

<div class="post-metadata">

**Author:** ![tony21177](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony21177/32/56161_2.png) [@tony21177](https://discuss.elastic.co/u/tony21177)\
**Post date:** [July 15, 2019, 2:17am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/5 "2019-07-15T02:17:32Z")

</div>

I try to modify the last line of teh script /usr/share/kibana/bin/kibana in docker container  
from  
`NODE_ENV=production "${NODE}" --no-warnings --inspect=0.0.0.0 --max-http-header-size=65536 $NODE_OPTIONS "${DIR}/src/cli" ${@}`  
to  
`NODE_ENV=development "${NODE}" --no-warnings --inspect=0.0.0.0 --max-http-header-size=65536 $NODE_OPTIONS "${DIR}/src/cli" ${@}`

then the log shows the following error

`kibana_1 | {"type":"error","@timestamp":"2019-07-15T02:16:58Z","tags":["warning","process"],"pid":394,"level":"error","error":{"message":"Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.","name":"Warning","stack":"Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.\n at Transport.config.defer (/usr/share/kibana/src/legacy/core_plugins/elasticsearch/lib/parse_config.js:108:43)\n at Transport.request (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:177:18)\n at exec (/usr/share/kibana/node_modules/elasticsearch/src/lib/client_action.js:362:20)\n at EsApiClient.action (/usr/share/kibana/node_modules/elasticsearch/src/lib/client_action.js:62:16)\n at Worker._getPendingJobs (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:389:24)\n at Worker._processPendingJobs (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:308:17)\n at Poller.functionToPoll (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:69:21)\n at Poller._poll (/usr/share/kibana/node_modules/x-pack/common/poller.js:28:17)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)"},"message":"Promise.defer is deprecated and will be removed in a future version. Use new Promise instead."}`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 12, 2019, 2:18am UTC](https://discuss.elastic.co/t/how-to-run-development-mode-in-docker/190171/6 "2019-08-12T02:18:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
