portainer / agent

The Portainer agent

Home Page:https://www.portainer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to call the portainer agent from my own scripts?

traverseda opened this issue · comments

I would like to use python to generate configs for an entire docker swarm. Unfortunately even with AGENT_SECRET I can't figure out how to query the agent end points.

This would be used for generating swarm-wide nginx reverse proxy configs, similar to docker flow proxy, but would be generating from templates stored in the swarm's configs.

In order to do this I need access to the full list of containers on all swarm nodes, and I figure portainer agent is already doing that quite well.