description | keywords | redirect_from | title | |
---|---|---|---|---|
Autoredeploy |
Autoredeploy, image, store, service |
|
Redeploy services automatically |
Docker Cloud's Autoredeploy feature allows a service that uses an image stored in Docker Hub to automatically redeploy whenever a new image is pushed or built.
Notes:
Autoredeploy works only for hub images with the latest tag.
To enable autoredeploy on an image stored in a third party registry, you will need to use redeploy triggers instead.
You can launch a service with autoredeploy enabled by enabling it from the general settings section of the Launch new service wizard.
By default, autoredeploy is deactivated.
You can enable autoredeploy when launching a service using the CLI or API.
By default, autoredeploy is set to false
. See the API documentation for more information.
$ docker-cloud service run --autoredeploy [...]
POST /api/app/v1/service/ HTTP/1.1
{
"autoredeploy": true,
[...]
}
You can activate or deactivate autoredeploy on a service after it has been deployed.
- Click into the service detail page.
- Click Edit.
- Change the autoredeploy setting on the form to
true
. - Click Save changes.
You can set the autoredeploy option after the service has been deployed, using the CLI or API.
Check our API documentation for more information.
$ docker-cloud service set --autoredeploy (name or uuid)
PATCH /api/app/v1/service/(uuid)/ HTTP/1.1
{
"autoredeploy": true
}