# Anyone using Docker?

**URL:** https://discourse.nodered.org/t/anyone-using-docker/4208
**Category:** General
**Created:** [23 October 2018 07:45 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208 "2018-10-23T07:45:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)
#### Post date: [23 October 2018 07:45 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/1 "2018-10-23T07:45:10Z")

</div>

Hi,

Lately my eye fell on docker. Which looks a very interesting technology to me. There are also [Node-RED docker images](https://nodered.org/docs/platforms/docker).

So I was wondering if there is anyone out there using docker (e.g. on raspberry pi) ?  
I am especially interested in any interesting use cases based on docker.

Jan.

---

<div class="post-metadata">

### Author: ![Memphisdj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/memphisdj/32/3274_2.png) [@Memphisdj](https://discourse.nodered.org/u/Memphisdj)
#### Post date: [23 October 2018 08:22 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/2 "2018-10-23T08:22:54Z")

</div>

Hi Jan,

I have been using Node-Red in docker for about 2 months now. I am running all my stuff in docker containers on a Raspberry Pi 3 using the Hypriot OS. I find it useful to run in docker mainly because i have another VM, which is set up on my laptop and i can easily switch over to it with minimum downtime of services (e.g. Homeautomation), being able to run the same stuff as on the RPi. I use persistent volumes for node-red data, so that when i install new modules, as well as if i rebuild the container the data is always there.

I can use the Exec node as well, even though Node-Red is in a docker container.

If you have any question, feel free to ask.

Regards,  
Marin

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [23 October 2018 08:23 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/3 "2018-10-23T08:23:13Z")

</div>

I’m using it via my QNAP NAS (and it’s Container Station facility).

For me it works well, being a container it was easy to set up and run, requiring no additional hardware, just a small allocation of the host’s resources.

---

<div class="post-metadata">

### Author: ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)
#### Post date: [23 October 2018 09:32 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/4 "2018-10-23T09:32:07Z")

</div>

Hi Marin,

Thanks for your response.

> [@Memphisdj](#):
>
> .. I find it useful to run in docker mainly because i have another VM, which is set up on my laptop and i can easily switch over to it with minimum downtime of services (e.g. Homeautomation), being able to run the same stuff as on the RPi.

I am bit wondering how this works. I would expect that images for the raspberry pi won't run on your laptop as it is a different hardware architecture (e.g. intel processor versus ARM processor).

> [@](#):
>
> ... I use persistent volumes for node-red data, so that when i install new modules, as well as if i rebuild the container the data is always there.

So I guess this means that flows are stored in the persistent volume, but does this also mean that the newly installed nodes including Node.js modules are installed in the persistent volume ?

---

<div class="post-metadata">

### Author: ![Memphisdj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/memphisdj/32/3274_2.png) [@Memphisdj](https://discourse.nodered.org/u/Memphisdj)
#### Post date: [23 October 2018 10:10 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/5 "2018-10-23T10:10:48Z")

</div>

Hi Jan,

About the images, yes they are different architecture, but data is more or less the same (speaking for NR specifically). And yes if you install modules they persist as well, but i usually install module through the palette manager and if required, i enter the container and install using npm manually.

Marin.

---

<div class="post-metadata">

### Author: ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)
#### Post date: [24 October 2018 04:34 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/6 "2018-10-24T04:34:51Z")

</div>

I'm using Node-Red in Docker on a Pi and also on Ubuntu-\>VirtualBox-\>Windows. It is brilliant. I can easily spin up multiple containers that map different external ports to 1880 so the Node Red config is identical. Very handy for different projects or testing.

If you go down the Docker path, you should also look at Portainer (which also runs under Docker) to manage/monitor your Docker containers. If nothing else, it simplifies using SSH to connect.

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [24 October 2018 07:24 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/7 "2018-10-24T07:24:39Z")

</div>

Hi,  
I have a couple of QNAP NAS boxes that I use as my home servers.  
I'm interested in putting Node-RED via Docker on one of the boxes.  
Is it difficult?  
Where did you find the instructions?

Kind regards from David.

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [24 October 2018 08:16 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/8 "2018-10-24T08:16:48Z")

</div>

Hi @dynamicdave

If you have Container Station installed; it was pretty straight forward for me (but I’m no expert)  
I just choose to create a container searched for ‘node red’ adjusted the resource allocation from the host and made it ‘bridge’ so it had it’s own IP address, and that was it.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/9eed2a416c6f834f641707de6de19e9fc69cedaf.jpeg)

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [24 October 2018 18:20 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/9 "2018-10-24T18:20:21Z")

</div>

Hiss boo - 'Container Station' is not available on either of my QNAP boxes.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [25 October 2018 00:35 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/10 "2018-10-25T00:35:27Z")

</div>

Yep been using Docker for ages now. I use it for a heap of different services, but also have started experimenting with Node-red in there (within a Virtual machine) - i run all of this under ESXi rather than Raspberry Pis

ONce you get used to docker and how it works it will change the way you work - best thing is the ability to grab something for testing from the internet and have it spun up and in testing within about 3 minutes. Also knowing you can blow it away very quickly and leave your system in pristine condition again.

The combination of Virtual machines and containers is out of this world (and i do use Portainer also)

Craig

---

<div class="post-metadata">

### Author: ![spants](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@spants](https://discourse.nodered.org/u/spants)
#### Post date: [26 October 2018 12:08 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/11 "2018-10-26T12:08:21Z")

</div>

I wrote one of the very early docker templates for NodeRed and have been using NR in a docker for ages.  
Docker works really well - I use it on windows, macs and linux systems. Set external volumes for persistant data and you can update at will. Docker also allows you to run multiple copies easilty (different ports) - ideal for testing.

At home, I use unRaid operating system ([unraid.net](http://unraid.net)) which supports docker (I have 17 dockers running inc NodeRed, Home Assistant, MQTT, Plex etc) and VMs running on legacy hardware.

---

<div class="post-metadata">

### Author: ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)
#### Post date: [28 October 2018 04:38 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/12 "2018-10-28T04:38:51Z")

</div>

I'm using docker on an x86 box but I don't have my main node-red running there. I have the second node-red instance running in a docker container. It's using a different port so it doesn't conflict. It's for my dev code (the mytimeout node). I also have another container for gerbera (media server) which my current Debian distribution doesn't support. It would be a huge pain to d/l, upgrade and/or compile all necessary libraries.

---

<div class="post-metadata">

### Author: ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)
#### Post date: [28 October 2018 06:04 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/13 "2018-10-28T06:04:17Z")

</div>

I have been using Docker for both my home automation, and for reporting water usage as for industrial businesses, on a stack of RPis, using NR, MQTT, MariaDB in the containers, for more than a yr now. I have documented the approach, all though some aspects needs a refresh now. I am waiting for release 0.20 where the runtime will be split off, this will be a major step forward.

See the sransards here and documenttion below.

> <https://github.com/IoTPlay/docker-iotplay-standards/blob/master/README.md>

---

<div class="post-metadata">

### Author: ![itarozzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/itarozzi/32/242_2.png) [@itarozzi](https://discourse.nodered.org/u/itarozzi)
#### Post date: [29 October 2018 19:33 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/14 "2018-10-29T19:33:20Z")

</div>

I used a pool of nodered docker container for a workshop some time ago.

Very usefull to create NR instances for the students on my laptop, without waste time installing stand alone ones.

---

<div class="post-metadata">

### Author: ![i8beef](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/i8beef/32/3161_2.png) [@i8beef](https://discourse.nodered.org/u/i8beef)
#### Post date: [1 November 2018 03:41 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/15 "2018-11-01T03:41:12Z")

</div>

I do. It makes upgrades nice and I know where all my data is. I also run an nginx instance in docker on the machine to proxy the instance. This gives me (a) an easier to manage SSL/TLS setup, (b) ability to fine tune auth per endpoint and safely expose certain endpoints to the internet without exposing the rest of node-red or dashboard, (c) the ability to proxy OTHER things on the same site that aren't hosted in node-red but I need to expose to the network as well.

Docker really makes any setup much easier for me, and satisfies my need for easy backups / config and a nice clean base OS installation.

---

<div class="post-metadata">

### Author: ![deccos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/deccos/32/22202_2.png) [@deccos](https://discourse.nodered.org/u/deccos)
#### Post date: [18 May 2020 14:20 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/16 "2020-05-18T14:20:38Z")

</div>

Hi there, am new to Docker but understand the concepts. Have run HA and Node Red ona Pi for a while te, but am now trying to move to Docker for a permanent home for it all. I have both HA and NR setup on my Docker setup (Ubuntu on NUC). How do I get NR to talk to HA ?

thanks

Declan

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [19 May 2020 04:48 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/17 "2020-05-19T04:48:42Z")

</div>

Show us your docker build files so we can see what you have done

typically for a newbie i would suggest against running NR in a docker container until you are across it pretty well.

I would definitely recommend against using someone elses Docker container (rather than one you build yourself) as there are a reasonably constant stream of updates between NR, Dashboard, NPM, NodeJS and the like

Craig

---

<div class="post-metadata">

### Author: ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)
#### Post date: [19 May 2020 06:43 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/18 "2020-05-19T06:43:13Z")

</div>

> [@deccos](#):
>
> How do I get NR to talk to HA ?

It should normally work very similar as when not using docker.  
What is not working - where are you stuck ?

---

<div class="post-metadata">

### Author: ![oywino](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oywino/32/26457_2.png) [@oywino](https://discourse.nodered.org/u/oywino)
#### Post date: [12 August 2020 11:40 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/19 "2020-08-12T11:40:43Z")

</div>

@Memphisdj, You say you use the Exec node successfully with your docker installation of NR.  
I have run into several issues with the Exec node because the user _node-red_ has very little access rights inside the container.  
Do you know of any way to permanently or temporarily grant elevated rights to the _node-red_ user?  
At least in my NR container, I do not have either _sudo_ or _apt-get_ so there's very little I can do.

Any assistance is appreciated.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 August 2020 13:05 UTC](https://discourse.nodered.org/t/anyone-using-docker/4208/20 "2020-08-12T13:05:19Z")

</div>

> [@oywino](#):
>
> the user _node-red_ has very little access rights inside the container

The user has rights inside the container, it is outside the container that is the problem. A major purpose of using a Docker install is to limit the rights that the app has over the rest of the system. If you don't want that then perhaps you would be better not using docker.

[Next page](https://discourse.nodered.org/t/anyone-using-docker/4208.md?page=2)
