参考 https://www.cnblogs.com/CloudMan6/p/7607705.html
Rax-Ray 是一个优秀的 Docker volume driver , 本节将学习其安装和配置方法.
Rex-Ray 以 standalone 进程的方式运行在 Docker 主机上, 安装方法很简单, 在需要使用 Rex-Ray driver 的主机 docker1 和 docker2 上运行如下命令
[email protected]:~# curl -sSL https://rexray.io/install | sh -
Selecting previously unselected package rexray.
- (Reading database ... 60121 files and directories currently installed.)
- Preparing to unpack rexray_0.11.4-1_amd64.deb ...
- Unpacking rexray (0.11.4-1) ...
- Setting up rexray (0.11.4-1) ...
- rexray has been installed to /usr/bin/rexray
- REX-Ray
- -------
- Binary: /usr/bin/rexray
- Flavor: client+agent+controller
- SemVer: 0.11.4
- OsArch: Linux-x86_64
- Commit: e7414eaa971b27977d2283f2882825393493179d
- Formed: Wed, 16 Jan 2019 00:03:57 CST
- [email protected]:~# curl -sSL https://rexray.io/install | sh -
Selecting previously unselected package rexray.
- (Reading database ... 60121 files and directories currently installed.)
- Preparing to unpack rexray_0.11.4-1_amd64.deb ...
- Unpacking rexray (0.11.4-1) ...
- Setting up rexray (0.11.4-1) ...
- rexray has been installed to /usr/bin/rexray
- REX-Ray
- -------
- Binary: /usr/bin/rexray
- Flavor: client+agent+controller
- SemVer: 0.11.4
- OsArch: Linux-x86_64
- Commit: e7414eaa971b27977d2283f2882825393493179d
- Formed: Wed, 16 Jan 2019 00:03:57 CST
- [email protected]:~# cat /etc/rexray/config.YAML
- libstorage:
- service: VirtualBox
- VirtualBox:
- endpoint: http://10.12.28.120:18083
- volumePtah: C:\share
- controllerName: SATA
- # libstorage-service 1 使用 VirtualBox 的 Virtual media 作为 backend, 提供 data volue, 生产环境中使用 ceph RBD 等
- # VirtualBox-endpoint 1 实验环境中提供 backend 的地址
- # VirtualBox-volumePtah: 1 实验环境中提供 backed 的目录
- # VirtualBox-controllerName:1 controller 的名字
来源: http://www.bubuko.com/infodetail-3030876.html