Home

Awesome

node-red-contrib-dockerode

This Node RED module connects Docker with Node-RED.

Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways.

<p align="center"> <a href="https://naimo84.github.io/node-red-contrib-dockerode"> <img src="https://img.shields.io/badge/doku-naimo84.github.io-0078D6?style=for-the-badge&logo=github&logoColor=white"/> </a> </p>

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

Thank you to all my backers!

People

Become a backer

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

Thanks! :heart:

:cloud: Installation

First of all install Node-RED

:yum: How to contribute

<img src="https://img.shields.io/npm/dy/node-red-contrib-dockerode?style=for-the-badge"/>

Usage

Configuration:

docker.sock

The Node-RED container must have access to the docker.sock, so you have to add the docker-group ID to the container with <pre>docker run ... --group-add 250</pre> the ID 250 may be different on your system.

Exposing TCP-Daemon port

In order to expose the docker-engine TCP daemon, you have to do the following:

DockerWindowsSettings.png

See https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd

or:

# File: /etc/default/docker
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS=""
DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock"

or:

# File: /lib/systemd/system/docker.service
ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375