Skip to content

Commit

Permalink
Can run on Windows Machine without installing rsync, default vagrant …
Browse files Browse the repository at this point in the history
…sync folder configuration.
  • Loading branch information
windperson committed Mar 26, 2016
1 parent f3da9f5 commit 0a3953d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end

config.vm.box = "#{VG_BOX_NAME}"

if config.vm.box.to_s == "centos/7"
#turn off default rsync sharing in offical CentOS 7 vagrant box
config.vm.synced_folder '.', '/home/vagrant/sync', disabled: true
config.vm.synced_folder '.', '/vagrant', disabled: false
end
#config.ssh.insert_key = false

config.vm.hostname = 'dockerhost'
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ and 4 require vagrant plugins:
- vagrant-triggers: https://github.com/emyl/vagrant-triggers
- vagrant-persistent-storage: https://github.com/kusnier/vagrant-persistent-storage

The successfully initiated VM store its docker installation folder /var/lib/docker in separated disk file *disk_data/docker_data.vdi* , so you can backup & restore current docker image, containers and volume data even if VM deleted then recreated.
The successfully initiated VM store its docker installation folder /var/lib/docker in separated disk file **disk_data/docker_data.vdi** , so you can backup & restore current docker image, containers and volume data even if VM deleted then recreated.

Host mapping of this Vagrant project folder is /home/vagrant/sync in VM.
It use [official CentOS 7 vagrant box](https://vagrantcloud.com/centos/boxes/7) to run, and host mapping inside VM of this Vagrant project folder is **/vagrant**, the same as default vagrant configuration.

You can tweak:

Expand Down

0 comments on commit 0a3953d

Please sign in to comment.