netPI Docker REST API - Printable Version +- Hilscher Community Forum (https://forum.hilscher.com) +-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html) +--- Forum: Software (https://forum.hilscher.com/forum-5.html) +--- Thread: netPI Docker REST API (/thread-369.html) |
netPI Docker REST API - patrick - 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 greater than >= 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 - July-16th-2019 Another new Node-RED flow appended to this new post includes a Docker Stack example now 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 . flow.txt (Size: 27.71 KB / Downloads: 19) |