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,

The DigitalOcean Docker Registry would be available soon, you could request early access via this link here:

https://www.digitalocean.com/products/container-registry/

For the time being, what I could suggest is publishing your Docker image to Docker Hub, that way you could then SSH to your Droplet and with the docker pull command you could pull the image from the Docker Hub to your Droplet.

To push your image to Docker Hub, you need to do the following:

  • Create an account at: https://hub.docker.com

  • Then on your local machine login to the registry with this command:

docker login
  • After that push your image to the registry:
docker push your_docker_user/name_of_image_here
  • This would basically upload your image to Docker Hub, after that SSH to your Droplet and pull the image:
docker login
docker pull your_docker_user/name_of_image_here

Note that you need to have Docker installed first:

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

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