Remote API

Docker Remote API Docker’s Remote API uses an open schema model. In this model, unknown properties in incoming messages are ignored. Client applications need to take this behavior into account to ensure they do not break when talking to newer Docker daemons. The API tends to be REST, but for some complex commands, like attach or pull, the HTTP connection is hijacked to transport STDOUT, STDIN, and STDERR. By default the Docker daemon listens on unix:///var/run/docker.sock and the client must ha

Rackspace

Rackspace Create machines on Rackspace cloud $ docker-machine create --driver rackspace --rackspace-username=user --rackspace-api-key=KEY --rackspace-region=region vm Options: --rackspace-username: required Rackspace account username. --rackspace-api-key: required Rackspace API key. --rackspace-region: required Rackspace region name. --rackspace-endpoint-type: Rackspace endpoint type (adminURL, internalURL or the default publicURL). --rackspace-image-id: Rackspace image ID. Default: Ubunt

Quickstart: Compose and WordPress

Quickstart: Docker Compose and WordPress You can use Docker Compose to easily run WordPress in an isolated environment built with Docker containers. This quick-start guide demonstrates how to use Compose to set up and run WordPress. Before starting, you’ll need to have Compose installed. Define the project Create an empty project directory. You can name the directory something easy for you to remember. This directory is the context for your application image. The directory should only contain

Quickstart: Compose and Rails

Quickstart: Docker Compose and Rails This Quickstart guide will show you how to use Docker Compose to set up and run a Rails/PostgreSQL app. Before starting, you’ll need to have Compose installed. Define the project Start by setting up the three files you’ll need to build the app. First, since your app is going to run inside a Docker container containing all of its dependencies, you’ll need to define exactly what needs to be included in the container. This is done using a file called Dockerfile

Quickstart: Compose and Django

Quickstart: Docker Compose and Django This quick-start guide demonstrates how to use Docker Compose to set up and run a simple Django/PostgreSQL app. Before starting, you’ll need to have Compose installed. Define the project components For this project, you need to create a Dockerfile, a Python dependencies file, and a docker-compose.yml file. Create an empty project directory. You can name the directory something easy for you to remember. This directory is the context for your application ima

Quickstart

Docker Engine Quickstart This quickstart assumes you have a working installation of Docker Engine. To verify Engine is installed and configured, use the following command: # Check that you have a working install $ docker info If you have a successful install, the system information appears. If you get docker: command not found or something like /var/lib/docker/repositories: permission denied you may have an incomplete Docker installation or insufficient privileges to access Engine on your mach

Provision with Machine

Provision a Swarm cluster with Docker Machine You can use Docker Machine to provision a Docker Swarm cluster. Machine is the Docker provisioning tool. Machine provisions the hosts, installs Docker Engine on them, and then configures the Docker CLI client. With Machine’s Swarm options, you can also quickly configure a Swarm cluster as part of this provisioning. This page explains the commands you need to provision a basic Swarm cluster on a local Mac or Windows computer using Machine. Once you u

Provision hosts in the cloud

Use Docker Machine to provision hosts on cloud providers Docker Machine driver plugins are available for many cloud platforms, so you can use Machine to provision cloud hosts. When you use Docker Machine for provisioning, you create cloud hosts with Docker Engine installed on them. You’ll need to install and run Docker Machine, and create an account with the cloud provider. Then you provide account verification, security credentials, and configuration options for the providers as flags to docke

Provision Digital Ocean Droplets

Digital Ocean example Follow along with this example to create a Dockerized Digital Ocean Droplet (cloud host). Step 1. Create a Digital Ocean account If you have not done so already, go to Digital Ocean, create an account, and log in. Step 2. Generate a personal access token To generate your access token: Go to the Digital Ocean administrator console and click API in the header. Click Generate New Token to get to the token generator. Give the token a clever name (e.g. “machine”), make s

Provision AWS EC2 Instances

Amazon Web Services (AWS) EC2 example Follow along with this example to create a Dockerized Amazon Web Services (AWS) EC2 instance. Step 1. Sign up for AWS and configure credentials If you are not already an AWS user, sign up for AWS to create an account and get root access to EC2 cloud computers. If you have an Amazon account, you can use it as your root user account. Create an IAM (Identity and Access Management) administrator user, an admin group, and a key pair associated with a region