How to install and run docker on digitalocean dorplet?

Posted July 15, 2019 18.4k views
DigitalOceanUbuntu 18.04

I am new to digitalocean, And this is my first deployment to it, So I miss some information to make this deployment done.

I have created the digitalocean account, then created a droplet with ubuntu os, then generated a ssh token and uploaded an application which using node.js, prisma, mongodb and docker using sftp.

What I have to do next? Installing docker and docker-compose manually? Or I have to delete the droplet and build a new one using my docker-machine on my local machine? Or what ?.

  • Typo? Dorplet in the title.

  • Hi, Khalifa. I’m also new at digital ocean and I reach up to your question trying to solve the same.
    What do you do at last? What do you think is the best solution?
    I should build my containers again in the droplet or I should download them from any docker repo and simply start them at the droplet?

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


You don’t have to delete the droplet, you can just SSH to your existing droplet and follow the steps here on how to install Docker:

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.