# Add dependencies to docker image

**URL:** <https://discourse.nodered.org/t/add-dependencies-to-docker-image/55516>\
**Category:** General\
**Tags:** docker\
**Created:** [21 December 2021 09:35 UTC](https://discourse.nodered.org/t/add-dependencies-to-docker-image/55516 "2021-12-21T09:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheYolo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/theyolo/32/52929_2.png) [@TheYolo](https://discourse.nodered.org/u/TheYolo)\
**Post date:** [21 December 2021 09:35 UTC](https://discourse.nodered.org/t/add-dependencies-to-docker-image/55516/1 "2021-12-21T09:35:23Z")

</div>

I've been following the documentation ([Running under Docker : Node-RED](https://nodered.org/docs/getting-started/docker)) but can't figure it out. It builds but when I try to open 127.0.0.1:1880 I get ERR\_CONNECTION\_REFUSED in Chrome, so the web service is not running?

What I wanted to do is add support for Elasticsearch with the package from Jeff, this is my Dockerfile:

```auto
FROM nodered/node-red:latest
USER root
RUN npm install node-red-contrib-elasticsearch-jd
USER node-red

```

Build it:

`docker build -t test/noderedext:latest .`

Run it:

`docker run test/noderedext -p 1880:1880 -d`

I know I'm not mounting any volumes her, so I will get the warning up on the dashboard but for now I only want to add the dependency before I go ahead and complete the container.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 February 2022 09:35 UTC](https://discourse.nodered.org/t/add-dependencies-to-docker-image/55516/2 "2022-02-19T09:35:47Z")

</div>

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