Ceph cluster on Docker for testing
I haven’t advertised this one really much (even if I’ve been using it in some articles). Since people are still wondering how to quickly get a full Ceph cluster up and running for testing, I believe it deserves its own article so it will get more visibility. Re-introducing the Ceph demo container. This is going to be a really short article :).
It is fairly easy to get up and running. Obviously you need to have Docker installed.
Since we will be using
--net=host option to directly plug the daemons on the host interface, you will need to select the IP address.
$ ip -4 a
For me, this going to be
Now let’s run the container:
$ sudo docker run -d --net=host -v /etc/ceph:/etc/ceph -e MON_IP=192.168.0.69 -e CEPH_NETWORK=192.168.0.0/24 ceph/demo
Check that the container is up and running:
$ sudo docker ps
Thanks to this container you will get all the Ceph daemons up and running:
- 1 monitor
- 1 object storage daemon
- 1 metadata server
- 1 rados gateway
All the ports will automatically get exposed, so you can access all the services really easily.
It looks like you do not have any more excuses now to try out Ceph :-).