Skip to content

Commit 5650ad9

Browse files
committed
Add RO/Caps/nonroot detail to docs if defined
1 parent 537607f commit 5650ad9

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

roles/generate-jenkins/templates/DOCUMENTATION.j2

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Containers are configured using parameters passed at runtime (such as those abov
146146
{% endfor %}
147147
{% endif %}
148148
{% endif %}
149-
{% if custom_params is defined or opt_custom_params is defined or param_usage_include_hostname or param_usage_include_mac_address or security_opt_param is defined or opt_security_opt_param is defined %}
149+
{% if custom_params is defined or opt_custom_params is defined or param_usage_include_hostname or param_usage_include_mac_address or security_opt_param is defined or opt_security_opt_param is defined or (readonly_supported is defined and readonly_supported) or cap_add_param is defined or opt_cap_add_param is defined or nonroot_supported is defined %}
150150

151151
#### Miscellaneous Options
152152

@@ -178,6 +178,21 @@ Containers are configured using parameters passed at runtime (such as those abov
178178
| `--security-opt {{ item.run_var }}` | {{ item.desc }} |
179179
{% endfor %}
180180
{% endif %}
181+
{% if readonly_supported is defined and readonly_supported %}
182+
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
183+
{% endif %}
184+
{% if cap_add_param %}
185+
{% for item in cap_add_param_vars %}
186+
| `--cap-add={{ item.cap_add_var }}` | {{ item.desc }} |
187+
{% endfor %}
188+
{% endif %}
189+
{% if opt_cap_add_param %}
190+
{% for item in opt_cap_add_param_vars %}
191+
| `--cap-add={{ item.cap_add_var }}` | {{ item.desc }} |
192+
{% endfor %}
193+
{% if nonroot_supported is defined and nonroot_supported %}
194+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
195+
{% endif %}
181196
{% endif %}
182197
{% if cap_add_param or opt_cap_add_param or (custom_params is defined and 'sysctl' in (custom_params | map(attribute="name")) ) %}
183198

0 commit comments

Comments
 (0)