You have to wait for database to start up.
We have to disable sendfile when running through boot2docker.

See
https://github.com/boot2docker/boot2docker/pull/284#issuecomment-48827833