0.1.5 • Published 1 year ago

@danimart1991/node-red-docker v0.1.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@danimart1991/node-red-docker

Platform License NPM Known Vulnerabilities Total Downloads GitHub last commit Tip Me via PayPal Sponsor Me via GitHub

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"
}
PropertyTypeDescription
payload.levelstringThe log Level: Debug, Info, Warn, Error, Critical or Other.
payload.messagestringThe log Message.
payload.source.idstringThe Id of the node that threw the log.
payload.source.typestringThe Type of the node that threw the log.
payload.source.namestringThe Name, if set, of the node that threw the log.

Author

Daniel Martin Gonzalez

License

Apache 2.0

0.1.4

1 year ago

0.1.5

1 year ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago