Skip to content

Instantly share code, notes, and snippets.

@clintkitson
Last active June 2, 2016 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clintkitson/066e8f069f6cea919a87c8506c371d6a to your computer and use it in GitHub Desktop.
Save clintkitson/066e8f069f6cea919a87c8506c371d6a to your computer and use it in GitHub Desktop.
// Create a Polly host and a Docker engine host
docker-machine create --driver=virtualbox agent1
// Install and configure Docker engine host with REX-Ray talking to Polly
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s unstable" ; done
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "sudo tee -a /etc/rexray/config.yml << EOF
rexray:
modules:
default-docker:
host: unix:///run/docker/plugins/rexray.sock
spec: /etc/docker/plugins/rexray.spec
libstorage:
service: virtualbox
libstorage:
embedded: true
server:
services:
virtualbox:
driver: virtualbox
virtualbox:
endpoint: http://10.0.2.2:18083
tls: false
volumePath: /Users/clintonkitson/VirtualBox Volumes
controllerName: SATA
" ; done
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "sudo rexray start" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment