Docker
Docker
by DigitalOcean

Version 19.03.1

OS Ubuntu 18.04

DEVELOPER TOOLS
Create Docker Droplet

Description

Docker containers combines 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.

Software Included

Getting started after deploying Docker

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

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.

Note: The default firewall for the Docker One-Click is UFW, which is a front end to iptables. However, Docker modifies iptables directly to set up communication to and from containers. This means that UFW won’t give you a full picture of the firewall settings. You can override this behavior in Docker by adding --iptables=false to the Docker daemon.

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 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":"s-2vcpu-4gb","image":"docker-18-04"}' \
      "https://api.digitalocean.com/v2/droplets"
      

Support Details

Supported By:DigitalOceanDigitalOcean
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