Docker One-Click Application

Containers let you run your applications in resource-isolated processes. Compared to virtual machines, containers are more portable, more resource-friendly, and more dependent on the host operating system. Docker is an application that simplifies the process of managing application processes in containers.

The DigitalOcean Docker One-Click Application streamlines the process of getting started with Docker. It automatically installs and configures the open-source Docker CE (Community Edition) and Docker Compose according to the official Docker recommendations. Once you create a Docker Droplet, you can connect with SSH and immediately start creating and using containers.

Components

Droplets created using this One-Click have the following software components:

Component Version
Linux Ubuntu 18.04.1
Docker CE Latest from Docker stable channel
Docker Compose Latest release from Docker Compose

In addition to the package installation, the One-Click also:

Quickstart

Once the Docker One-Click Droplet is created, you can log into it as root. Make sure to subsitute your Droplet IP address.

ssh root@use_your_droplet_ip

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.

API Creation

In addition to creating a Droplet from the Docker One-Click application via the control panel, you can also use the DigitalOcean API.

You can list all One-Click application images using the API. As an example, to create a 4GB Docker Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.

curl -X POST -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer '$TOKEN'' -d \
    '{"name":"choose_a_name","region":"sfo2","size":"4gb","image":"docker-18-04"}' \
    "https://api.digitalocean.com/v2/droplets"

Next Steps

You can follow Docker’s getting started series to learn how to use Docker. You can also read The Docker Ecosystem: An Introduction to Common Components for a detailed instruction to the different components of a Docker container.

You can also look at Certbot’s Docker documentation to use SSL with your containers.