Git Product home page Git Product logo

aws-ebs-rex-ray-docker-compose's Introduction

This sample shows how to use REX-Ray with AWS EBS and Docker Compose

This sample requires Docker version 1.13, where the docker plugin feature has been introduced. If you want to use the long syntax to specify volumes for a service, Docker Compose schema version 2.3 hence Docker version 17.06.0+ are required.

Install REX-Ray as a Docker plugin: docker plugin install rexray/ebs:0.11.2 EBS_ACCESSKEY=AWS_ACCESS_KEY_ID EBS_SECRETKEY=AWS_SECRET_ACCESS_KEY

Create an AWS EBS volume aws ec2 create-volume --size 10 --region eu-central-1 --availability-zone eu-central-1a --volume-type gp2 --tag-specifications 'ResourceType=volume,Tags=[{Key=Name,Value=test-volume}]'

For Docker Compose schema version 2.1, start the busybox container using Docker Compose this way: docker-compose up

Expected output:

Creating busy ... done
Attaching to busy
busy    | total 8
busy    | drwx------    2 root     root          4096 May 12 19:15 .
busy    | drwxr-xr-x   19 root     root          4096 May 12 19:30 ..
busy exited with code 0

For Docker Compose schema version 2.3+, start the busybox container using Docker Compose this way: docker-compose -f docker-compose_2.3 up

Expected output:

Creating busy ... done
Attaching to busy
busy    | total 8
busy    | drwx------    2 root     root          4096 May 12 19:15 .
busy    | drwxr-xr-x   19 root     root          4096 May 12 19:30 ..
busy exited with code 0

aws-ebs-rex-ray-docker-compose's People

Contributors

alexzeitler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.