This is a clone of triton-docker-cli for use with the Spearhead Cloud
Go to file
Casey Bisson f5f02cb1e9 shellcheck improvements 2017-06-02 09:12:45 -07:00
LICENSE Initial commit 2017-05-19 10:16:47 -07:00
README.md Update README.md 2017-05-22 08:15:53 -07:00
triton-docker shellcheck improvements 2017-06-02 09:12:45 -07:00

README.md

Triton Docker CLI helper

This script installs known good, tested versions of the Docker (now Moby) and Docker Compose CLI tools for use with Triton.

Additionally, this script will automatically configure those tools for use with Triton when you use them, making it easy to switch between Docker on your laptop and Docker on Triton.

Compatibility and requirements

This is designed and tested for Linux and MacOS X.

This code also requires the Triton CLI tools and a Triton account on either Triton public cloud (Joyent public cloud) or in a private cloud powered by Triton.

Use of this software also requires a Triton profile configured in the Triton CLI tool.

Installation

In a terminal window, run the following command:

sudo curl -o /usr/local/bin/triton-docker https://raw.githubusercontent.com/joyent/triton-docker-cli/master/triton-docker && chmod +x /usr/local/bin/triton-docker && ln -Fs /usr/local/bin/triton-docker /usr/local/bin/triton-compose && ln -Fs /usr/local/bin/triton-docker /usr/local/bin/triton-docker-install

That command will copy the triton-docker shell script from this repo, and link it as triton-compose and triton-docker-install.

To complete the installation, run sudo triton-docker-install to install the platform-specific versions of the Docker (now Moby) and Docker Compose CLI tools. These versions will not replace any existing Docker or Docker Compose versions you may have installed.

Usage

Once installed, use triton-docker and triton-compose in place of docker and docker-compose when interacting with the Triton Elastic Docker Host.

Start a Docker container running Nginx container on Triton:

$ triton-docker run -d -p 80 --name webserver nginx
Executing in 'us-sw-1' (default; use `triton profile set <profile name>` to change) at 03:11:11 PM
d5cae48b0072610ecc67f6aecb3115f9fadff59b2151694a963084dad40e5d85
$

Start all the containers to run WordPress via Docker Compose on Triton:

$ triton-compose up -d
Executing in 'us-sw-1' (default; use `triton profile set <profile name>` to change) at 03:15:56 PM
Creating wp_wordpress_1
Creating wp_nginx_1
Creating wp_nfs_1
Creating wp_memcached_1
Creating wp_prometheus_1
Creating wp_mysql_1
Creating wp_consul_1
$

More about:

Components

In addition to the shell script in this repo, this script will install: