How do i uload my docker image to digital ocean

Posted January 20, 2020 14.5k views

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.

Submit an Answer
1 answer


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


  • Make sure that you have Docker installed:

  • Install the doctl command-line tool:

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

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

  • docker push


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

Hope that this helps!

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.