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


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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Accessing netPI web UI with REST API Armin@netPI 5 1,113 March-30th-2021, 07:45 AM
Last Post: Armin@netPI
  Docker not enabled tad 2 189 March-5th-2021, 12:29 PM
Last Post: tad
  Docker amd64 instead of arm biancode 3 412 January-17th-2021, 09:40 PM
Last Post: Armin@netPI
  docker.service start failed EUROKEY 13 2,068 January-17th-2021, 07:52 PM
Last Post: Armin@netPI
  Get host MAC via REST API inside container bschandra 4 951 November-16th-2020, 09:26 AM
Last Post: bschandra
  Docker cannot find image COswald 16 2,108 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 1,213 January-31st-2020, 02:14 PM
Last Post: MAK
  [SOLVED] Docker GUI login issue MGharat 1 721 September-19th-2019, 11:50 AM
Last Post: Armin@netPI
  [SOLVED] Pull Docker Image a.w.d.m. 8 1,217 July-8th-2019, 11:17 AM
Last Post: Armin@netPI
  [SOLVED] Docker issues AlexRegev 7 1,406 June-26th-2019, 02:14 PM
Last Post: AlexRegev

Forum Jump:


Users browsing this thread: 1 Guest(s)