Public | Automated Build

Last pushed: a day ago
Short Description
Short description is empty for this repo.
Full Description

Demo container

This Dockerfile may be used to bootstrap a Ceph cluster with all the Ceph daemons running.

/!\ THIS CONTAINER IS NOT RECOMMENDED FOR PRODUCTION USAGE /!\

The main purpose of this container is to quickly get a Ceph cluster up and running by reducing all the setup steps. The container provides all the Ceph daemons, so you can rapidly start playing with Ceph.

Usage

The environment variables MON_NAME and MON_IP are required:

  • MON_NAME is the name of the monitor (DEFAULT: hostname)
  • MON_IP is the IP address of the monitor (public)
  • RGW_NAME is the name of rados gateway instance (DEFAULT: hostname)
  • RGW_CIVETWEB_PORT is the port of the rados gateway (DEFAULT: 80)
  • CLUSTER is the name of the cluster (DEFAULT: ceph)
  • CEPH_PUBLIC_NETWORK is the network where the OSD should communicate
  • CEPH_DEMO_UID, CEPH_DEMO_ACCESS_KEY, CEPH_DEMO_SECRET_KEY, and CEPH_DEMO_BUCKET can be used to auto-provision an account.

Commonly, you will want to bind-mount your host's /etc/ceph into the container. For example:

docker run -d --net=host -v /etc/ceph:/etc/ceph -e MON_IP=192.168.0.20 -e CEPH_PUBLIC_NETWORK=192.168.0.0/24 ceph/demo

Tip

If you get user_xattr error, try to remount your docker partition:

sudo mount -o remount,user_xattr,rw $(df -P /var/lib/docker |tail -1 |tr -s ' ' |cut -d' ' -f6)
Docker Pull Command
Owner
ceph
Source Repository

Comments (2)
chenzi
8 months ago

creating /etc/ceph/ceph.client.admin.keyring
creating /etc/ceph/ceph.mon.keyring
monmaptool: monmap file /etc/ceph/ceph.monmap
monmaptool: set fsid to d2859f51-d2e5-45de-9e29-45b35462e85b
monmaptool: writing epoch 0 to /etc/ceph/ceph.monmap (1 monitors)
2016-10-11 02:30:45.416757 7faa034f1700 0 librados: client.admin authentication error (1) Operation not permitted
Error connecting to cluster: PermissionError
creating /etc/ceph/ceph.client.admin.keyring
creating /etc/ceph/ceph.mon.keyring
monmaptool: monmap file /etc/ceph/ceph.monmap
monmaptool: set fsid to d6ac4dad-63c7-4a7f-a9fe-e93de8474d46
monmaptool: writing epoch 0 to /etc/ceph/ceph.monmap (1 monitors)
2016-10-11 02:31:44.429039 7fc466a26700 0 librados: client.admin authentication error (1) Operation not permitted
Error connecting to cluster: PermissionError
2016-10-11 02:31:45.910438 7fc908f0f700 0 librados: client.admin authentication error (1) Operation not permitted
Error connecting to cluster: PermissionError

lorieri
2 years ago

tip:
sudo mount -o remount,user_xattr,rw /var