Docker 3
Docker 3
Docker 3
Deploy a fully configured and functional ELK stack Blog Docs Get
with *NEW* DigitalOcean Blueprints Support Contact Sales
Docker
by DigitalOcean
Version 23.0.6 OS Ubuntu 22.04
DEVELOPER TOOLS
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
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.
Check versions
Execute in the ssh console:
docker version
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.
Docker Compose
1. Go to https://docs.docker.com/compose/release-notes/
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"
Support Details
Additional Links
Awesome Compose
A curated list of Docker Compose samples
Source Code
Packer scripts used to build this 1-Click App
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
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
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