我正在尝试使用docker-compose在目录上建立Ceph对象存储。
这是我现在拥有的:

version: '3.7'
services:
  mon:
    image: ceph/daemon:latest
    network_mode: host
    command: mon
    environment:
      MON_IP: 192.168.10.68
      CEPH_PUBLIC_NETWORK: 192.168.10.0/24
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
  osd:
    image: ceph/daemon:latest
    network_mode: host
    pid: host
    command: osd
    privileged: true
    environment:
      OSD_DIRECTORY: /data/ceph_data/
      OSD_TYPE: directory
      OSD_FORCE_ZAP: 1
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
      - /dev/:/dev/
    depends_on:
      - mon
  rgw:
    image: ceph/daemon:latest
    network_mode: host
    command: rgw
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
    ports:
      - "8080:8080"
    depends_on:
      - osd

但是在启动(docker-compose up)时,osd无法与此连接:
mon_1  | debug 2019-10-03 12:36:44.112 7f7782a91700  1 mon.cloyster@0(leader).auth v10 client did not provide supported auth type
osd_1  | [errno 95] error connecting to the cluster

这是为什么?我究竟做错了什么? docker-compose是否有可行的解决方案在目录中包含Ceph?

最佳答案

我建议您检查/etc/ceph的权限,它应该允许ceph对其进行读写,例如chown ceph:ceph /etc/ceph

10-07 18:51