I want to use terraform to deploy a docker image on digitalocean_app
. My images are public and hosted on docker hub.
I tried this:
image {
registry_type = "DOCKER_HUB"
repository = "royllo/explorer-api"
}
But when deploying, i get this error:
Error creating App: POST https://api.digitalocean.com/v2/apps: 400 (request “XXXXX-XXXX-XXXX-XXXX-XXXXXXXX”) Image does not exist or is private
My image is here:
https://hub.docker.com/repository/docker/royllo/explorer-api/general
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You’ll want to use the
registry
field as well: