try to use other mount option

to prevent docker from using dir instead of file
This commit is contained in:
benkuly 2020-05-25 19:04:56 +02:00
parent eb8e3572fd
commit 469554b836

View File

@ -27,7 +27,7 @@ ExecStart=/usr/bin/docker run --rm --name matrix-sms-bridge \
{% endif %} {% endif %}
-v {{ matrix_sms_bridge_config_path }}:/config:z \ -v {{ matrix_sms_bridge_config_path }}:/config:z \
-v {{ matrix_sms_bridge_data_path }}:/data:z \ -v {{ matrix_sms_bridge_data_path }}:/data:z \
-v {{ matrix_sms_bridge_data_path }}/gammu-smsdrc:/etc/gammu-smsdrc:z \ --mount type=bind,source={{ matrix_sms_bridge_data_path }}/gammu-smsdrc,target=/etc/gammu-smsdrc \
--device {{ matrix_sms_bridge_gammu_modem }}:/dev/ttyModem \ --device {{ matrix_sms_bridge_gammu_modem }}:/dev/ttyModem \
{% for arg in matrix_sms_bridge_container_extra_arguments %} {% for arg in matrix_sms_bridge_container_extra_arguments %}
{{ arg }} \ {{ arg }} \