@danimart1991/node-red-docker
v0.1.5
Published
A set of Node-RED nodes to use with a Docker server.
Downloads
30
Maintainers
Readme
@danimart1991/node-red-docker
A set of Node-RED nodes to use with a Docker Server.
Install
As other custom nodes, the recommendation is to install using the "Manage Palettes" option in Node-RED.
Indeed, these nodes are available as individual npm package. This repository acts as an overall store for the nodes - and is not intended as a way to install them - unless you really do want some development.
$ npm install @danimart1991/node-red-docker
Usage
All the nodes have a Server parameter that must be configured to work (see Config below).
Config
A configuration node that holds the credentials of a Docker Server. All the nodes need this node to work.
Two configuration options are valid to correctly configure this node:
- URL+Port: It's the server's URL used to connect to Docker Server, including http(s)://, port, and urlbase if required.
- Socket Path: The Socket Path used to connect to the Docker Server.
Nodes
- Containers: Brings different options to work with the Docker Containers in the server like
List
,Inspect
,Start
,Stop
,...
Log
In addition, all the nodes have a Log output that offers information on how the execution has worked.
{
"payload": {
"source": {
"id": "0f12103e2251c436",
"type": "docker-containers-list"
},
"level": "Info",
"message": "15 Container/s returned"
},
"_msgid": "4c1261a1eb9bfb44"
}
| Property | Type | Description |
| --------------------- | -------- | --------------------------------------------------------------------------- |
| payload.level
| string | The log Level: Debug, Info, Warn, Error, Critical or Other. |
| payload.message
| string | The log Message. |
| payload.source.id
| string | The Id of the node that threw the log. |
| payload.source.type
| string | The Type of the node that threw the log. |
| payload.source.name
| string | The Name, if set, of the node that threw the log. |