471d22ba03
is referenced in volume name.
23 lines
492 B
Desktop File
23 lines
492 B
Desktop File
[Unit]
|
|
Description=Openstack Cinder Storage container
|
|
After=docker.service
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
TimeoutStartSec=0
|
|
Restart=always
|
|
ExecStartPre=-/usr/bin/docker kill %n
|
|
ExecStartPre=-/usr/bin/docker rm %n
|
|
ExecStart=/usr/bin/docker run --name %n \
|
|
--privileged \
|
|
{{ env_vars | replace('\n', '') }} \
|
|
-v /srv/cinder-storage/root:/root \
|
|
-v /etc/ceph:/etc/ceph \
|
|
-p 8777:8776 \
|
|
-p 3260:3260 \
|
|
--network=host \
|
|
{{ docker_image }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|