Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
vagrant-docker-example
======================
# vagrant-docker-example

Example of basic vagrant docker provider usage
Example of basic Vagrant Docker provider usage

Installation
------------
> Running Docker as a provider in non-Linux environment will require the installation on a Docker Host VM, where Docker containers will run.

Install vagrant: using http://vagrantup.com/downloads.html
> Because of an error with current version of `hashicorp/boot2docker` (rsync has been removed), it has been replaced by `dduportal/boot2docker`.

If you are using linux, install docker: http://docs.docker.com/linux/step_one/
On mac and windows, install docker toolbox: https://www.docker.com/toolbox
## Installation

Clone this repo
### VirtualBox

Install VirtualBox from: https://www.virtualbox.org/wiki/Downloads

### Vagrant

Install Vagrant using: http://vagrantup.com/downloads.html

### Docker

If you are using Linux, install Docker: http://docs.docker.com/linux/step_one/

On Mac and Windows, install Docker Toolbox from: https://www.docker.com/toolbox

If you prefer, you can install Docker on Mac using `homebrew`:

brew install docker
brew install docker-machine
brew install docker-compose

### Run Vagrantfile

Clone this repo.

From repo folder:

vagrant up

# on mac and windows, you will be asked for a password, enter: tcuser
# on Mac and Windows, you will be asked for a password, enter: tcuser
# you will be asked for password twice for 2 folders to sync

vagrant ssh # user tcuser password again
Expand Down
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Example for VirtualBox:
#
config.vm.provider "docker" do |d|
d.vagrant_vagrantfile = "Vagrantfile-boot2docker"
d.build_dir = "."
d.has_ssh = true
end
Expand Down
3 changes: 3 additions & 0 deletions Vagrantfile-boot2docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Vagrant.configure("2") do |config|
config.vm.box = "dduportal/boot2docker"
end