Open JohnAZoidberg opened 3 years ago
Hi @JohnAZoidberg,
Thanks for the suggestion. Currently the API does not support directly uploading an image. One work around is to first uploaded the image to DigitalOcean Spaces. You can then get a URL and import it from there. For example, we do this in the DigitalOcean importer for Packer.
it's inconvenience for us to upload image by url. i even cannot troubleshoot the uploading issue on control panel.
What is the problem this feature would solve? Please describe. Currently the
doctl compute image create
command just allows to create an image based on a URL. What if I build an image locally or on another droplet. How can I add it as an image?Describe the solution you'd like Add
--image-path
as an alternative for--image-url
to upload local files as images.