Docker Workflow on OSX in 60 Seconds

Getting started with Docker feels more like a game of Simon than it does learning a new tool. Using Docker on OSX requires, at a minimum, boot2docker and docker. Multi-container applications require docker-compose, as well. It’s extremely easy to confuse the interfaces for each of these applications. For example, build, up, start, stop, ps, and save are commands shared across two, if not all three of the applications. The cheat sheet below covers the most basic workflow necessary to work with docker.

Setting Up:

Download and install the latest release package ( Boot2Docker-x.x.x.pkg) from here. Then run the following:

Running Applications:

For a single container:

Or for multiple containers:

Breaking Down:

 

For a single container:

Or for multiple containers:

Cleaning Up (Optional):

If you have any questions or feedback, please don’t hesitate to leave a comment below or reach out to me via Twitter @brodan_.