Skip to content

Instantly share code, notes, and snippets.

@tkdn
Created January 19, 2015 14:51
Show Gist options
  • Save tkdn/7fcf3427978a0d2745e7 to your computer and use it in GitHub Desktop.
Save tkdn/7fcf3427978a0d2745e7 to your computer and use it in GitHub Desktop.
Vagrant+Docker してホストOSのWinでもSyncしたい ref: http://qiita.com/tkdn/items/00da52f5545436b055f3
$ git clone https://github.com/coreos/coreos-vagrant.git
$ cd coreos-vagrant
$ vagrnt up
$ vagrant ssh
ここからゲストOS
core@core-01 $ docker run -d \
-p 80:80 \
-p 443:443 \
-p 3306:3306 \
-v /app:/var/www/html \
-v /data/mysql:/var/lib/mysql \
-e MYSQL_PASS="password" \
--name joomla \
dell/joomla
$ scp -r -i ~/vagrant.d/insecure_private_key core@core-01:/app ./
$ vagrant rsync-auto
$ vagrant plugin install vagrant-rsync-back
$ vagrant rsync-back
ip = "172.17.8.#{i+100}"
config.vm.network :private_network, type: "dhcp", ip: ip
config.vm.network :public_network, type: "dhcp"
config.vm.synced_folder "./app", "/app", type: "rsync"
config.vm.synced_folder "./data", "/data", type: "rsync"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment