This document presents a simple way to manage your Docker resource by using Portainer as a gateway (HTTP queries against the Portainer API).
The API documentation is available here: https://app.swaggerhub.com/apis/deviantony/portainer/
WARNING: This documentation is valid for Portainer >= 1.18.0.
NOTE: I'm using httpie to execute HTTP queries from the CLI.