feat: Add mount option
This commit is contained in:
parent
319439c3ac
commit
7007d8f123
@ -22,6 +22,14 @@ AutoUpdate=registry
|
||||
Volume={{ volume }}
|
||||
{% endfor %}
|
||||
|
||||
{% for mount in container.get('mounts', []) %}
|
||||
{% if mount.get('options', []) | length > 0 %}
|
||||
Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }},{{ mount.options | join(',') }}
|
||||
{% else %}
|
||||
Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for port in container.get('ports', []) %}
|
||||
PublishPort={{ port }}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user