I have a small app I want to run in a Docker container on my Droplet. Is there a fast way to get Docker up and running without going through all the install steps manually? Ideally just want to deploy and run the container with minimal setup.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there,
The easiest option is to use the Docker 1-Click App from the DigitalOcean Marketplace, it comes pre-installed and ready to use: https://marketplace.digitalocean.com/apps/docker
If you prefer to do it yourself, you can SSH into the Droplet and run the official install script:
curl -fsSL https://get.docker.com | sudo sh
Then run your container like this:
docker run -d -p 80:80 your-image-name
On another note, for a quick intro to Docker and working with containers on a Droplet, this guide might help:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
For a more in-depth guide, you can check out this one here: Introduction to Docker
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.