hpc-cloud/roles/glance-controller/templates/glance.service

16 lines
314 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Openstack Glance Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
2017-07-12 10:24:46 +02:00
ExecStartPre=-/usr/bin/docker rm -f %n
ExecStart=/usr/bin/docker run --name %n \
2017-07-31 13:21:03 +02:00
{{ env_vars | replace('\n', '') }} \
{{ docker_image }}
[Install]
WantedBy=multi-user.target