REX-Ray 是一个 EMC {code} 团队领导的开源项目,为 Docker、Mesos 及其他容器运行环境提供持续的存储访问。其设计旨在囊括通用存储、虚拟化和云平台,提供高级的存储功能。
当前支持的系统:
*
Ubuntu
*
Debian
*
RedHat
*
CentOS
*
CoreOS
*
OSX
运行时 CLI:
<pre class="brush:shell;toolbar: true; auto-links: false;">$ export REXRAY_STORAGEDRIVERS=ec2
$ export AWS_ACCESSKEY=access_key
$ export AWS_SECRETKEY=secret_key
$ rexray volume get
- providername: ec2
instanceid: i-695bb6ab
volumeid: vol-dedbadc3
devicename: /dev/sda1
region: us-west-1
status: attached</pre>
运行时 服务(Docker)
<pre class="brush:shell;toolbar: true; auto-links: false;">$ export REXRAY_STORAGEDRIVERS=ec2
$ export AWS_ACCESSKEY=access_key
$ export AWS_SECRETKEY=secret_key
$ rexray service start
Starting REX-Ray...SUCESS!
The REX-Ray daemon is now running at PID XX. To
shutdown the daemon execute the following command:
sudo /usr/bin/rexray stop
$ docker run -ti --volume-driver=rexray -v test:/test busybox
$ df /test</pre>