Skip to content

Commit

Permalink
Describe shared folders in README.md
Browse files Browse the repository at this point in the history
Related to GH-12
  • Loading branch information
legal90 committed Jul 14, 2015
1 parent 1efc375 commit ef2947e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,24 @@ docker version
...
```

If you want the actual box file, you can download it from the
[releases page](https://github.com/Parallels/boot2docker-vagrant-box/releases).
## Shared Folders
`/Users` path on you Mac is shared with boot2docker VM by default. It means
that you can mount any directory placed in `/Users` on your Mac into the
container, for example:

```bash
docker run -v /Users/bob/myapp/src:/src [...]
```

If you want to mount any directory outside of `/Users`, then you should set it
(or its parent dir) as a synced folder in your Vagrantfile at first:

```ruby
config.vm.synced_folder "/tmp/dir_to_share", "/tmp/dir_to_share"
```

Refer to ["Synced Folders - Basic Usage"](https://docs.vagrantup.com/v2/synced-folders/basic_usage.html)
to get more details about synced folders in Vagrant.

## Tips & tricks

Expand Down

0 comments on commit ef2947e

Please sign in to comment.