Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

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

Open
rberger opened this issue Sep 12, 2014 · 1 comment
Open

Comments

@rberger
Copy link
Contributor

rberger commented Sep 12, 2014

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
Copy link
Owner

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.

rberger added a commit to rberger/meez that referenced this issue Oct 4, 2014
paulczar added a commit that referenced this issue Oct 7, 2014
Added use_sudo to driver if running on Mac for Issue #22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants