paulczar / meez

rubygem to set up opinionated TDD chef cookbook
73 stars 17 forks source link

.kitchen.yml for Mac OS X should set use_sudo: false for docker driver #22

Open rberger opened 10 years ago

rberger commented 10 years ago

Mac OSX that has docker installed via brew (and maybe others?) expect docker command to be run as the user and not with sudo. So the kitchen driver needs to have the line use_sudo: false added as in:


---
driver:
  name: docker
  provision_command: curl -L http://www.opscode.com/chef/install.sh | bash
  use_sudo: false

If you don't do that, when you even run rake -T you will get all sorts of errors from the line Kitchen::RakeTasks.new in the Rakefile cause it trys to do sudo -E docker > /dev/null and fails spewing error messages.

paulczar commented 10 years ago

cool. I'll try and get this patched in the next day or two. feel free to send me a PR if you've fixed it in a fork.