Triggers are API endpoints that redeploy or scale a specific service
whenever a POST
HTTP request is sent to them. You can create one or more
triggers per service.
Triggers do not require any authentication. This allows third party services like Docker Hub to call them, however because of this it is important that you keep their URLs secret.
The body of the POST
request is passed in to the new containers as an
environment variable called DOCKERCLOUD_TRIGGER_BODY
.
Docker Cloud supports two types of triggers:
Go to the detail page and scroll down to the Triggers section.
Click the + (plus sign) icon.
To stop a trigger from automatically scaling or redeploying, you must revoke it.
Click the trashcan icon for the trigger you want to revoke.
Once the trigger is revoked, it stops accepting requests.
See our API and CLI documentation to learn how to use triggers with our API and the CLI.