Created
January 11, 2017 18:38
-
-
Save arhea/deb0aca5c8ba31658d7eec1a99cf18e8 to your computer and use it in GitHub Desktop.
Install and Configure RexRay with Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh | |
cat > /etc/rexray/config.yml <<'EOF' | |
rexray: | |
modules: | |
default-docker: | |
disabled: true | |
efs-docker: | |
type: docker | |
host: unix:///run/docker/plugins/efs.sock | |
spec: /etc/docker/plugins/efs.spec | |
libstorage: | |
service: efs | |
ebs-docker: | |
type: docker | |
host: unix:///run/docker/plugins/ebs.sock | |
spec: /etc/docker/plugins/ebs.spec | |
libstorage: | |
service: ebs | |
libstorage: | |
server: | |
services: | |
ebs: | |
driver: ebs | |
efs: | |
driver: efs | |
EOF | |
rexray service start | |
systemctl daemon-reload && systemctl enable rexray && systemctl restart rexray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment