boot2docker provides a handy script to easily manage the VM running the docker daemon. It also takes care of the installation for the OS image that is used for the job.