make osd containers privileged for dm activation

master
lub 5 years ago
parent 3e4083fdda
commit c71e44834f

@ -3,7 +3,7 @@
version: "3.0" version: "3.0"
services: services:
ceph_osd_${OSD_ID}: ceph_osd:
container_name: ceph_osd_${OSD_ID} container_name: ceph_osd_${OSD_ID}
image: docker.io/ceph/daemon:latest-nautilus image: docker.io/ceph/daemon:latest-nautilus
#copy hostname of the host to correctly calculate CRUSH map positions #copy hostname of the host to correctly calculate CRUSH map positions
@ -15,8 +15,7 @@ services:
- /ceph/osd_${OSD_ID}/etc/ceph/:/etc/ceph/ - /ceph/osd_${OSD_ID}/etc/ceph/:/etc/ceph/
- /dev/:/dev/ - /dev/:/dev/
command: osd_ceph_volume_activate command: osd_ceph_volume_activate
cap_add: privileged: true
- SYS_ADMIN
networks: networks:
- ceph - ceph
networks: networks: