This Docker container will mount the requested RBD image to a volume. You can then
use link to that volume from other containers with the --volumes-from Docker run option.
RBD_IMAGE: name of the image (defaults toimage0)RBD_POOL: name of the pool in which the image resides (defaults torbd)RBD_OPTS: rbd map options (defaults torw)RBD_FS: filesystem of the RBD image (defaults toxfs)- NOTE: this container does NOT create the filesystem
RBD_TARGET: the target mountpoint inside the container (defaults to/mnt/rbd)
- May mount to different targets (allowing multiple instances)
- Go-based maintenance daemon
- Keeps container running
- Unmounts on exit signal
- May mount to host filesystem mountpoint (
-v /host/path/mountpoint:/mnt/rbd)
docker run --name myData -e RBD_IMAGE=myData -e RBD_POOL=myPool ceph/rbd-volumedocker run --volumes-from myData myOrg/myApp