#!/bin/bash

# Run an OSD daemon, use /dev/sdb for now
docker run -d --net=host -v /etc/ceph:/etc/ceph -v /var/lib/ceph:/var/lib/ceph \
  -v /dev:/dev --privileged=true -e KV_TYPE=etcd -e OSD_FORCE_ZAP=1 \
  -e OSD_DEVICE=/dev/sdb ceph/daemon osd_ceph_disk

#!/bin/bash

# Run an OSD daemon, use /dev/sdb for now
docker run -d --pid=host --net=host \
  -v /etc/ceph:/etc/ceph-v /var/lib/ceph:/var/lib/ceph \
  -v /dev:/dev --privileged=true \
  -e KV_TYPE=etcd \
  -e OSD_FORCE_ZAP=1 \
  -e OSD_DEVICE=/dev/sdb ceph/daemon osd_ceph_disk

Add --pid=host to run ceph osd
Add --pid=host to run ceph osd

See https://goo.gl/cFilnr and
https://github.com/ceph/ceph-docker/issues/19 for the explanation.
