• 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: 10)
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [INFO]Docker DNS server Armin@netPI 0 17 March-7th-2019, 09:02 AM
Last Post: Armin@netPI
  [SOLVED] node-red Dashboard Docker Image for netPI? anrodriguez 1 22 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 626 January-31st-2019, 06:47 PM
Last Post: Armin@netPI
  [SOLVED] Keep getting a message that session expired in Docker SteveO 2 41 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
  [SOLVED] Authenticate against Docker Registry PBulach 19 611 September-19th-2018, 12:31 PM
Last Post: Armin@netPI
Information Managing netPI's Docker from remote via RESTful API for netPI versions < 1.1.4.0 Armin@netPI 4 279 September-7th-2018, 10:41 AM
Last Post: Armin@netPI
  Docker push SebastianSoller 2 178 August-22nd-2018, 08:26 PM
Last Post: Armin@netPI
  "node-red with NIOT-E-NPIX-EVA GPIO module" Docker image Eyad.Almolki 1 147 July-30th-2018, 06:22 PM
Last Post: Armin@netPI
  Create own trusted Docker registry server Armin@netPI 0 107 January-27th-2018, 02:55 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)