mount the etcd data directory in the container with the same path as on the host.

This commit is contained in:
gdmelloatpoints
2017-06-27 09:29:47 -04:00
parent 5c1891ec9f
commit 649654207f
3 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
--net=host \
-v /etc/ssl/certs:/etc/ssl/certs:ro \
-v {{ etcd_cert_dir }}:{{ etcd_cert_dir }}:ro \
-v {{ etcd_data_dir }}:/var/lib/etcd:rw \
-v {{ etcd_data_dir }}:{{ etcd_data_dir }}:rw \
{% if etcd_memory_limit is defined %}
--memory={{ etcd_memory_limit|regex_replace('Mi', 'M') }} \
{% endif %}