https://github.com/bvis/docker-rexray
Docker image to allow to attach EBS volumes into a docker node or cluster using RexRay
https://github.com/bvis/docker-rexray
Last synced: about 1 year ago
JSON representation
Docker image to allow to attach EBS volumes into a docker node or cluster using RexRay
- Host: GitHub
- URL: https://github.com/bvis/docker-rexray
- Owner: bvis
- Created: 2016-09-02T15:46:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-02T15:50:38.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T05:29:51.997Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Softonic Rexray for EC2
This image starts a RexRay service in the host. Now it just supports EC2 volumes (EBS).
You need to pass your EC2 credentials when launching the container as environment variables.
## Container execution
For run this container you need to mount some sockets needed for service to run.
```
docker run \
--rm -it \
-e AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY \
-e AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY \
-v /run/docker/plugins:/run/docker/plugins \
-v /var/lib/rexray:/var/lib/rexray \
-v /var/run/rexray:/var/run/rexray \
-v /dev:/dev \
basi/rexray
```
In case you have a Swarm cluster you can run it as a global service:
```
docker service create \
--name rexray \
--mode global \
-e AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY \
-e AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY \
--mount type=bind,src=/run/docker/plugins,dst=/run/docker/plugins \
--mount type=bind,src=/var/lib/rexray,dst=/var/lib/rexray \
--mount type=bind,src=/dev,dst=/dev \
basi/rexray
```