Hilscher Forum
netPI Docker REST API for versions >= V1.1.4.0 - Printable Version

+- Hilscher Forum (https://forum.hilscher.com)
+-- Forum: netPI - Industrial Ethernet featuring ruggedized Raspberry Pi (https://forum.hilscher.com/Forum-netPI-Ruggedized-Raspberry-Pi-with-Industrial-Ethernet)
+--- Forum: Software (https://forum.hilscher.com/Forum-Software)
+--- Thread: netPI Docker REST API for versions >= V1.1.4.0 (/Thread-netPI-Docker-REST-API-for-versions-V1-1-4-0)



netPI Docker REST API for versions >= V1.1.4.0 - Patrick@netPI - January-29th-2019

netPI web GUI portainer.io offers a REST API to control netPI Docker daemon from remote. All that is needed is a HTTPS capable client that is addressing the API function over REST.

To understand how it works I created a new Node-RED (includes a HTTPS client) based flow. It is compatible with netPI software versions >= 1.1.4.0. (for more details click HERE)
The flow includes a login, how to list containers, images, how to pull an image, create a container, start and stop it and ALSO how to push a container from netPI back to Docker registry.

Find appended the Node-RED flow you can test yourself. Open the flow file and copy its content to the clipboard and import it with "import/clipboard" in Node-RED using the top right menu pane. 

For older netPI software versions (< V1.1.4.0) you find the Node-RED flow HERE.


RE: netPI Docker REST API for versions >= V1.1.4.0 - Patrick@netPI - July-16th-2019

The Node-RED flow includes now a Docker Stack example. 

A stack is a collection of services that make up an application in a specific environment.

Tested with netPI software version V1.2.0.0 .

[attachment=94]