[Unit] Description=Ceph Monitor After=docker.service [Service] EnvironmentFile=-/etc/environment ExecStartPre=-/usr/bin/docker rm ceph-mon-%i ExecStartPre=/bin/sh -c '"$(command -v mkdir)" -p /etc/ceph /var/lib/ceph/mon' ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i \ --memory=7981m \ --cpu-quota=100000 \ -v /var/lib/ceph:/var/lib/ceph:z \ -v /etc/ceph:/etc/ceph:z \ -v /var/run/ceph:/var/run/ceph:z \ -v /etc/localtime:/etc/localtime:ro \ --net=host \ -e IP_VERSION=4 \ -e MON_IP=192.168.24.3 \ -e CLUSTER=ceph \ -e FSID=4b5c8c0a-ff60-454b-a1b4-9747aa737d19 \ -e CEPH_PUBLIC_NETWORK=192.168.24.0/24 \ -e CEPH_DAEMON=MON \ \ 192.168.24.1:8787/ceph/daemon:v3.2.10-stable-3.2-luminous-centos-7-x86_64 ExecStop=-/usr/bin/docker stop ceph-mon-%i ExecStopPost=-/bin/rm -f /var/run/ceph/ceph-mon.node-0000008931.asok Restart=always RestartSec=10s TimeoutStartSec=120 TimeoutStopSec=15 [Install] WantedBy=multi-user.target