Docker 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

Deploy a fully configured and functional ELK stack Blog Docs Get
with *NEW* DigitalOcean Blueprints Support Contact Sales

Search for other solutions

All Categories > Developer Tools

Docker
by DigitalOcean
Version 23.0.6 OS Ubuntu 22.04

DEVELOPER TOOLS

Create Docker Droplet

Description
Docker containers combine software and related dependencies into a standardized unit for software
development that includes everything it needs to run: code, runtime, system tools and libraries. This
guarantees that your application will always run the same and makes collaboration as simple as
sharing a container image.

This 1-click enables you to create a DigitalOcean droplet pre-installed with recommended Docker
tools (docker-engine, docker-compose).

For reference, the packer file used to create the Docker 1-click is here, and the recommended

https://marketplace.digitalocean.com/apps/docker 1/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

Software Included

Package

Docker CE

Version 23.0.6

License Apache 2

Docker Compose

Version 2.17.2

License Apache 2

Docker BuildX

Version 0.10.14

License Apache 2

Getting started after deploying Docker

https://marketplace.digitalocean.com/apps/docker 2/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

Once the Docker One-Click Droplet is created, you can log into it as root. Make sure to substitute
the Droplet’s public IPv4 address.

$ ssh root@your_droplet_public_ipv4

Docker -d will already be running as a service and the Docker command line tool is included in the
PATH, so it’s ready to use. $ docker version command shows the version of Docker engine
installed.

Note about firewall rules: If you are using the default droplet firewall rules in DigitalOcean cloud,
then you just need to follow the same practices. However, if you depend on the Linux firewall
(iptables), then you need to be aware of how Docker works with iptables.

After installing Docker


If you are new to Docker or have not explored all its capabilities, we highly recommend the official
getting started tutorial: https://docs.docker.com/get-started/

Check versions
Execute in the ssh console:

docker version

docker compose version

docker buildx version

Language specific tutorials


Node JS
Python
Java
Laravel
Wordpress
Go
C#(.NET)

Setting up a production system


Using NGINX
https://marketplace.digitalocean.com/apps/docker 3/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

NGINX Plus, the high‑performance application delivery platform, load balancer, and web
server, is available as the Docker container.

DO Storage

In cloud computing, block storage is a network-based way to store data. Block storage
services, like DigitalOcean Volumes Block Storage, provide similar behavior to traditional
block storage devices, like hard drives.

DO Registry

The DigitalOcean Container Registry (DOCR) is a private Docker image registry with additional
tooling support that enables integration with your Docker environment and DigitalOcean
Kubernetes clusters. DOCR registries are private and co-located in the datacenters where
DigitalOcean Kubernetes clusters are operated for secure, stable, and performant rollout of
images to your clusters.

Enable monitoring

Zabbix is a monitoring system that can monitor the state of almost any element of your IT
infrastructure, such as networks, servers, virtual machines, and applications.

Using Terraform

Terraform is an IAC tool, used primarily by DevOps teams to automate various infrastructure
tasks. The provisioning of cloud resources, for instance, is one of the main use cases of
Terraform. It's a cloud-agnostic, open-source provisioning tool written in the Go language and
created by HashiCorp

Update instructions

Docker
1. Go to https://download.docker.com/linux/ubuntu/dists/.

2 S l t Ub t
https://marketplace.digitalocean.com/apps/docker
i i th li t 4/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App
2. Select your Ubuntu version in the list.

3. Go to pool/stable/ and select the applicable architecture (amd64, armhf, arm64, or s390x).

4. Download the following deb files for the Docker Engine, CLI, containerd, and Docker
Compose packages:

containerd.io_<version>_<arch>.deb
docker-ce_<version>_<arch>.deb
docker-ce-cli_<version>_<arch>.deb
docker-buildx-plugin_<version>_<arch>.deb
docker-compose-plugin_<version>_<arch>.deb

5. Install the .deb packages. Update the paths in the following example to where you
downloaded the Docker packages.

sudo dpkg -i ./containerd.io_<version>_<arch>.deb \


./docker-ce_<version>_<arch>.deb \
./docker-ce-cli_<version>_<arch>.deb \
./docker-buildx-plugin_<version>_<arch>.deb \
./docker-compose-plugin_<version>_<arch>.deb

The Docker daemon starts automatically.

Docker Compose
1. Go to https://docs.docker.com/compose/release-notes/

2. Find new version

3 E t
API Creation
In addition to creating a Droplet from the Docker 1-Click App via the control panel, you can also use
the DigitalOcean API .

As an example, to create a 4GB Docker Droplet in the NYC3 region, you can use the following curl
command.
FEATURED You’llTUTORIAL
need to either save your API access token to an environment variable or
substitute it into the command below.
How To Remove Docker Images,
Containers, and Volumes
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' -d \

https://marketplace.digitalocean.com/apps/docker 5/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

'{"name":"choose_a_name","region":"nyc3","size":"s-2vcpu-4gb","image":"docker-20-04"}'
"https://api.digitalocean.com/v2/droplets"

See all Docker tutorials


Copy

Support Details

Supported By: DigitalOcean


Support URL: https://forums.docker.com

Additional Links

Awesome Compose
A curated list of Docker Compose samples

Docker on DigitalOcean Community


Docker Tutorials, Questions, and Resources

Source Code
Packer scripts used to build this 1-Click App

© 2023 DigitalOcean, LLC. All rights reserved.


Proudly made in NY

Sitemap

https://marketplace.digitalocean.com/apps/docker 6/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

Categories

All Solutions
Kubernetes
Add-Ons
Analytics
Blogs and Forums
Business Apps
Chat
Databases
Data Science
Developer Tools
eCommerce
eLearning
Email
Frameworks
Functions
Gaming
Logging
Media
Monitoring
Network Tools
Security
Storage

Use Cases

Apps for Working from Home


Agencies and Web Dev Shops
Kubernetes administration and operations
Higher Education
Apps for Startups
Security and VPN

For Vendors

Become a Vendor
https://marketplace.digitalocean.com/apps/docker 7/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

Vendor Guidelines and Resources


Vendor Portal

Switch To

Control Panel
Docs
Support
Vendor Portal

https://marketplace.digitalocean.com/apps/docker 8/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

https://marketplace.digitalocean.com/apps/docker 9/10
12/9/23, 5:29 PM Docker | DigitalOcean Marketplace 1-Click App

https://marketplace.digitalocean.com/apps/docker 10/10

You might also like