• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI Docker REST API for versions >= V1.1.4.0
#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 >= 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: 13)
#2
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 .


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


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Docker GUI login issue MGharat 1 24 September-19th-2019, 11:50 AM
Last Post: Armin@netPI
  [SOLVED] Pull Docker Image a.w.d.m. 8 37 July-8th-2019, 11:17 AM
Last Post: Armin@netPI
  [SOLVED] Docker issues AlexRegev 7 192 June-26th-2019, 02:14 PM
Last Post: AlexRegev
  docker timing MGharat 2 34 June-13th-2019, 08:57 AM
Last Post: Patrick@netPI
  Launching multi-containers at a time - Docker stacks Armin@netPI 0 23 June-4th-2019, 04:11 PM
Last Post: Armin@netPI
  [INFO]Docker DNS server Armin@netPI 0 19 March-7th-2019, 09:02 AM
Last Post: Armin@netPI
  [SOLVED] node-red Dashboard Docker Image for netPI? anrodriguez 1 23 February-7th-2019, 05:35 PM
Last Post: Armin@netPI
  Setup trusted Docker registry on a Raspberry Pi to host netPI containers Armin@netPI 12 689 January-31st-2019, 06:47 PM
Last Post: Armin@netPI
  [SOLVED] Keep getting a message that session expired in Docker SteveO 2 42 January-24th-2019, 11:50 AM
Last Post: Armin@netPI
  [SOLVED] Running Eclipse inside Docker Rahulsagar 6 52 January-21st-2019, 04:03 PM
Last Post: Rahulsagar

Forum Jump:


Users browsing this thread: 1 Guest(s)