Skip to content

seeruk/mdh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

OSXContainerHost

A Vagrant provisioned VM to run Docker containers in.

## Prerequisites

  • Vagrant
  • VirtualBox
  • Ansible

## Usage

$ git clone git@github.com:SeerUK/OSXContainerHost.git
$ vagrant up
$ export DOCKER_HOST=tcp://192.168.200.2:2375

(Or alternatively, add: export DOCKER_HOST=tcp://192.168.200.2:2375 to whatever shell rc is relevent to your system)

You can also adjust the RAM and CPU count by modifying the following environment variables:

$ export OCH_CPUS=8
$ export OCH_MEMORY=8192

The defaults are 4 CPU cores, and 4096MB of memory.

## Things to be wary of

  • NFS is configured to map all activity in /Users/ to the uid and gid you run Vagrant as. This will also affect volumes in containers if they are mounted from the /Users/ folder (which I imagine most will be...). Realistically, for most use-cases this shouldn't be a problem, but it is something to be aware of. Please suggest a better solution if there is one.
  • Docker containers are created inside the VM, the images are downloaded inside the VM. Everything happens in there; therefore, if you remove and recreate the VM you will lose all of your existing containers.

About

A Vagrant provisioned VM to run Docker containers in.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages