Setup:
$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})
#!/bin/bash | |
# A wrapper for the docker binary. Checks to make sure the docker host is | |
# set before executing docker commands. | |
docker() { | |
# Start the daemon if it's not running | |
if [ $(boot2docker status) != 'running' ]; then | |
echo 'Starting the Docker daemon.' | |
boot2docker start |