Joyent’s Triton: Let’s Start

You know Docker? Right, these days everyone knows Docker. However, how do you deploy your Docker containers? You have a bunch of Linux servers and upload the Docker containers to there. You’ve many Server and many containers, which containers goes to what server? Does your Linux server run on a VM? Does running your app running on top of two operating systems and Docker make it any faster?

Using two operating systems

Using two operating systems

I just want to use Docker containers. I don’t want to worry about servers and operating systems. With Joyent Triton I can do that. This post is a small introduction. Maybe I’ll write more about Triton ;).

Joyent Triton is open source. However, I will use Joyents AWS like public cloud service here.


First we have to create a Joyent account. Probably also need to register a credit card (I don’t remember it well). And you have to add your SSH-Key.

You’ve Docker already installed, right? Otherwise do that too.
We also need the Triton app, which need Node.js with npm. On my computer node.js 4.x didn’t seem to work, so install nodejs 6.x. Then install Triton via npm:

sudo npm install triton -g

Last, we need to configure the Triton app. We’ll need the Joyent account id, the datacenter name and the location of your ssh key:

Let’s Start

First, we have to change to the Triton environment. That way when using Docker, it will talk to Triton:

#What enviroment will be setup
gamlor@minty ~ $ triton env
#Ok...let's set it up
gamlor@minty ~ $ eval $(triton env)

Then we deploy a Docker container. We just use the regular Docker commands. A web server example: First use docker run to start the container, then docker ps to see your containers and docker inspect to find the IP address:

And, really the container did start and is running. Check it by using the IP address:
ngnix works!


Don’t forget to stop you’re container:

roman@minty ~ $ docker rm -f blog-server

Done for today

I’ll (hope to) write more blog posts 😉

Tagged on: , ,