• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI Docker REST API
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 >= (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.

Attached Files
.txt   flow.txt (Size: 24.75 KB / Downloads: 17)
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 .

.txt   flow.txt (Size: 27.71 KB / Downloads: 13)

Possibly Related Threads…
Thread Author Replies Views Last Post
  docker.service start failed EUROKEY 11 852 January-11th-2021, 01:16 PM
Last Post: Armin@netPI
  Get host MAC via REST API inside container bschandra 4 442 November-16th-2020, 09:26 AM
Last Post: bschandra
  Docker cannot find image COswald 16 1,000 May-18th-2020, 07:15 AM
Last Post: COswald
  After „Rebuild“ of Docker neither the node-RED nor the dashboard can be accessed MAK 4 719 January-31st-2020, 02:14 PM
Last Post: MAK
  [SOLVED] Docker GUI login issue MGharat 1 409 September-19th-2019, 11:50 AM
Last Post: Armin@netPI
  [SOLVED] Pull Docker Image a.w.d.m. 8 628 July-8th-2019, 11:17 AM
Last Post: Armin@netPI
  [SOLVED] Docker issues AlexRegev 7 786 June-26th-2019, 02:14 PM
Last Post: AlexRegev
  docker timing MGharat 2 379 June-13th-2019, 08:57 AM
Last Post: patrick
  Launching multi-containers at a time - Docker stacks Armin@netPI 0 388 June-4th-2019, 04:11 PM
Last Post: Armin@netPI
  [INFO]Docker DNS server Armin@netPI 0 234 March-7th-2019, 09:02 AM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)