• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Managing netPI's Docker from remote via RESTful API for netPI versions < 1.1.4.0
#1
Information 
Outdated: New flow find HERE

You all know netPI's Docker web GUI portainer.io. But most of you haven't recognized that portainer.io offers a RESTful API to take control of it from remote. All that is needed is a HTTP capable client that is addressing the API function over REST.

To make it simple to understand how it works I created a Node-RED (includes a HTTP client) based flow, that shows how to 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 Dockerhub for example.

Find appended the Node-RED flow you can test yourself: Load the flow.txt file to an editor and copy its content  to the clipboard and import it with "import/clipboard" in Node-RED's the top right menu pane. It is compatible with netPI's currently used portainer version 1.12.4.


Attached Files
.txt   flow.txt (Size: 20.25 KB / Downloads: 34)
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Managing netPI's Docker from remote via RESTful API for netPI versions < 1.1.4.0 - by Armin@netPI - August-22nd-2018, 09:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  https certificate issues in new nodered docker image Dipro 1 1,729 May-4th-2022, 05:46 AM
Last Post: Armin@netPI
  Trouble resetting NetPI a.w.d.m. 7 3,233 February-9th-2022, 10:02 AM
Last Post: a.w.d.m.
  cannot execute file: Exec format error - NETPI tuliosouza 1 1,812 January-13th-2022, 01:17 PM
Last Post: Armin@netPI
  Ways to replace NetPi with/copy Config to new NetPi Dipro 2 2,221 December-7th-2021, 08:42 PM
Last Post: Armin@netPI
  NetPI WiFi through Internet DSongra 1 2,006 September-7th-2021, 07:54 AM
Last Post: Armin@netPI
  NetPI wifi access to WPA2-Enterprise MikeP 4 4,392 September-3rd-2021, 02:56 PM
Last Post: MikeP
  netPI opc ua server pull image error wswitula 3 3,222 August-27th-2021, 10:47 AM
Last Post: wswitula
  OPC UA server with NetPi RTE DSongra 9 4,455 July-27th-2021, 12:01 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,396 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Docker exposed port don't send data on eth0 COswald 3 3,223 July-15th-2021, 02:10 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)