Skip to content

Instantly share code, notes, and snippets.

@arhea
Created January 11, 2017 18:41
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 arhea/77ec88e2e36364e7b6ee5d0b93591341 to your computer and use it in GitHub Desktop.
Save arhea/77ec88e2e36364e7b6ee5d0b93591341 to your computer and use it in GitHub Desktop.
Using RexRay on Amazon Web Services
#!/bin/bash
# create example EFS mount point
docker volume create --driver=efs --name=example-efs
# create example EBS disk within this availability zone
docker volume create --driver=ebs --name=example-ebs
# run an example container with EBS mount
docker run -it --rm -v example-ebs:/data --volume-driver=ebs busybox sh
# run an example container with EFS mount
docker run -it --rm -v example-efs:/data --volume-driver=efs busybox sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment