Is there a guide that explain how i can upload my docker image to digital ocean for deployment?

I tried to create a create a docker iamge file with “docker save iamgename > imagenameg.img” and upload that to digital ocean’s images section but i get and error saying it doesn support this “compression” type....???
Does digital ocean support docker? If so where do i start with deploying docker images to digital ocean?

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.

×
1 answer

Hello,

In order to get started with the DigitalOcean Docker Registry, you can follow the steps here.

Prerequisites

  • Make sure that you have Docker installed:

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

  • Install the doctl command-line tool:

https://www.digitalocean.com/docs/apis-clis/doctl/how-to/install/

First create a Docker Registry:

  • Visit the registry page under Images.
  • Enter a name for your registry. This name must be globally unique.
  • You will be advised if you need to enable a Spaces subscription first, which you can do by visiting the Spaces area of the control panel.

You could also create a registry via your command line with the following command:

  • doctl registry create your-registry-name

With that, your registry will be ready and you will be able to push new Docker images.

Push to Your DigitalOcean Registry

In order to push an image, you need to first login to your DigitalOcean Docker Registry:

  • doctl registry login

After that tag your image with the fully qualified destination path:

  • docker tag your-image-name registry.digitalocean.com/your-registry-name/your-image-name

Finally by using the docker push command to upload your image:

  • docker push registry.digitalocean.com/your-registry-name/your-image-name

Conclusion

For more information on how to use the DigitalOcean Docker Registry, make sure to check the documentation here:

https://www.digitalocean.com/docs/images/container-registry/quickstart/

Hope that this helps!
Regards,
Bobby

by Brian Hogan
Docker is an application that simplifies the process of managing application processes in containers. In this tutorial, you'll install and use Docker Community Edition (CE) on Ubuntu 18.04. You'll install Docker itself, work with containers and images, and push an image to a Docker Repository.
Submit an Answer