2017-02-16
By default, the Mac does not come with quite everything you need in order to install the Joyent Triton command-line tools, and Joyent’s web site tends to skip some of the requirements. Here are the complete steps for getting up to speed with Docker and Triton CLI tools on a shiny new macOS machine.
The components
- Docker Mac
- pkgsrc
- triton-cli
The steps
- Install the Docker application from the Docker web site. This provides a native GUI management app, which in turn installs the required system components. Download the Docker.dmg file from the web site, open the image, and run the .pkg installer. You’ll need to provide administrator credentials at first launch in order to install the system components.
- Install the pkgsrc package manager. Copy the snippet from the web site, paste into your Terminal window, and voilà.
- Update pkgsrc. Not strictly necessary, but it doesn’t hurt to run
pkgin -y update
after a fresh installation.
- Install node.js via pkgsrc:
sudo pkgin -y install nodejs
- Install the triton cli tools:
sudo npm install -g triton
Now you’re all set to build Docker images and manage them on Triton from your Mac.