Docker
Docker
by DigitalOcean

VERSION 18.06.1

OS Ubuntu 18.04

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, the One-Click also:

  • Enables the UFW firewall to allow only SSH (port 22, rate limited) and 2375/2376 for unencrypted/encrypted communication with the Docker daemon, respectively.
  • Configures Docker per the official Docker recommendations.
  • Configures Docker Compose per the official Docker Compose recommendations.Once the Docker One-Click Droplet is created, you can log into it as root. Make sure to substitute your Droplet IP address.shell 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.

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/

More DigitalOcean Links

Product Docs

Technical overviews, how-tos, release notes, and support material

Tutorials

DevOps and development guidelines

API Docs

Run your resources programmatically

Ask a question

Connect, share and learn