Skip to content

Instantly share code, notes, and snippets.

@marcy-terui
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save marcy-terui/5f39d460806e3327f793 to your computer and use it in GitHub Desktop.

Select an option

Save marcy-terui/5f39d460806e3327f793 to your computer and use it in GitHub Desktop.
kitchen-dockerでホストのボリュームをマウントする ref: http://qiita.com/Marcy/items/7f6d32eb0be4ba5bd737
---
driver:
name: docker
driver_config:
use_sudo: false
socket: <%= ENV['DOCKER_HOST'] %>
platforms:
- name: centos-6.5
suites:
- name: default
driver_config:
volume:
- <%= Dir::pwd %>/host:/var/guest:rw
run_list:
- recipe[pz-postgresql]
attributes:
busser:
sudo: true
sudo docker run -t -i -v /var/host:/var/guest:rw centos /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment