-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocumentation.md.j2
More file actions
244 lines (198 loc) · 7.58 KB
/
documentation.md.j2
File metadata and controls
244 lines (198 loc) · 7.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
#jinja2: keep_trailing_newline:True
{%- set markdown="mkdocs" -%}
{% from 'common_macros.j2' import noter with context %}
{%- set has_latest= true if (development_versions == true and 'latest' in (development_versions_items | map(attribute="tag"))) or (development_versions == false) else false -%}
---
title: {{ project_name }}
{% if project_categories %}
tags:
{% for tag in project_categories.split(",") %}
- {{ tag | title }}
{% endfor %}
{% endif %}
description: "{{ noter(project_blurb) | trim }}"
---
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
{% if project_deprecation_status %}
{% include "README_SNIPPETS/DEPRECATION.j2" | trim %}
{% endif %}
# [{{ lsio_project_name_short }}/{{ project_name }}]({{ project_github_repo_url }})
{% include "README_SNIPPETS/PROJECT_BADGES.j2" | trim %}
{{ noter(project_blurb) | trim }}
{% if project_blurb_optional_extras_enabled %}
{% for item in project_blurb_optional_extras %}
* {{ item }}
{% endfor %}
{% endif %}
[]({{ project_url }})
{% include "README_SNIPPETS/SUPPORTED_ARCHITECTURES.j2" | trim %}
{% if development_versions %}
{% include "README_SNIPPETS/VERSION_TAGS.j2" | trim %}
{% endif %}
{% if app_setup_block_enabled %}
{% include "README_SNIPPETS/APPLICATION_SETUP.j2" | trim %}
{% endif %}
{% if ["CI_SSL='true'", "CI_SSL= 'true'" ,"CI_SSL = 'true'"]|select("in", repo_vars) %}
{% include "README_SNIPPETS/STRICT_PROXY.j2" | trim %}
{% endif %}
{% if readme_seccomp is defined and readme_seccomp %}
{% include "README_SNIPPETS/SECCOMP.j2" | trim %}
{% endif %}
{% if readme_keyboard is defined and readme_keyboard %}
{% include "README_SNIPPETS/KEYBOARD.j2" | trim %}
{% endif %}
{% if readme_hwaccel is defined and readme_hwaccel %}
{% include "README_SNIPPETS/HWACCEL.j2" | trim %}
{% endif %}
{% if readme_media is defined and readme_media %}
{% include "README_SNIPPETS/MEDIA.j2" | trim %}
{% endif %}
{% if kasm_blurb is defined %}
{% include "README_SNIPPETS/KASM.j2" | trim %}
{% endif %}
{% if readonly_supported is defined and readonly_supported %}
{% include "README_SNIPPETS/READONLY.j2" | trim %}
{% endif %}
{% if nonroot_supported is defined and nonroot_supported %}
{% include "README_SNIPPETS/NONROOT.j2" | trim %}
{% endif %}
{% include "README_SNIPPETS/USAGE.j2" | trim %}
## Parameters
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
### Ports (`-p`)
| Parameter | Function |
| :----: | --- |
{% if param_usage_include_ports %}
{% for item in param_ports %}
| `{{ item.external_port }}:{{ item.internal_port }}` | {{ item.port_desc }} |
{% endfor %}
{% endif %}
{% if opt_param_usage_include_ports %}
{% for item in opt_param_ports %}
| `{{ item.external_port }}:{{ item.internal_port }}` | {{ item.port_desc }} |
{% endfor %}
{% endif %}
{% if param_usage_include_net %}
#### Networking (`--net`)
| Parameter | Function |
| :-----: | --- |
| `--net={{ param_net }}` | {{ param_net_desc }} |
{% endif %}
### Environment Variables (`-e`)
| Env | Function |
| :----: | --- |
{% if common_param_env_vars_enabled %}
{% for item in common_param_env_vars %}
| `{{ item.env_var }}={{ item.env_value }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if param_usage_include_env %}
{% for item in param_env_vars if not item.env_var | lower is eq "tz" %}
| `{{ item.env_var }}={{ item.env_value }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_param_usage_include_env %}
{% for item in opt_param_env_vars %}
| `{{ item.env_var }}={{ item.env_value }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
### Volume Mappings (`-v`)
| Volume | Function |
| :----: | --- |
{% if param_usage_include_vols %}
{% for item in param_volumes %}
| `{{ item.vol_path }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_param_usage_include_vols %}
{% for item in opt_param_volumes %}
| `{{ item.vol_path }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if param_device_map or opt_param_device_map %}
### Device Mappings (`--device`)
| Parameter | Function |
| :-----: | --- |
{% if param_device_map %}
{% for item in param_devices %}
| `{{ item.device_path }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_param_device_map %}
{% for item in opt_param_devices %}
| `{{ item.device_path }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% endif %}
{% 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 and nonroot_supported) %}
#### Miscellaneous Options
| Parameter | Function |
| :-----: | --- |
{% if param_usage_include_hostname %}
| `--hostname=` | {{ param_hostname_desc }} |
{% endif %}
{% if param_usage_include_mac_address %}
| `--mac-address=` | {{ param_mac_address_desc }} |
{% endif %}
{% if custom_params is defined %}
{% for item in custom_params %}
| `--{{ item.name }}=` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_custom_params is defined %}
{% for item in opt_custom_params %}
| `--{{ item.name }}=` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if security_opt_param %}
{% for item in security_opt_param_vars %}
| `--security-opt {{ item.run_var }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_security_opt_param %}
{% for item in opt_security_opt_param_vars %}
| `--security-opt {{ item.run_var }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if readonly_supported is defined and readonly_supported %}
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
{% endif %}
{% if cap_add_param %}
{% for item in cap_add_param_vars %}
| `--cap-add={{ item.cap_add_var }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if opt_cap_add_param %}
{% for item in opt_cap_add_param_vars %}
| `--cap-add={{ item.cap_add_var }}` | {{ item.desc }} |
{% endfor %}
{% endif %}
{% if nonroot_supported is defined and nonroot_supported %}
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
{% endif %}
{% endif %}
{% if cap_add_param or opt_cap_add_param or (custom_params is defined and 'sysctl' in (custom_params | map(attribute="name")) ) %}
### Portainer notice
!!! warning
This image utilises `cap_add` or `sysctl` to work properly. This is not implemented properly in some versions of Portainer, thus this image may not work if deployed through Portainer.
{% endif %}
{% include "README_SNIPPETS/ENV_VAR_FILES.j2" | trim %}
{% include "README_SNIPPETS/UMASK.j2" | trim %}
{% if optional_parameters is defined %}
{% include "README_SNIPPETS/OPTIONAL_PARAMETERS.j2" | trim %}
{% endif %}
{% if common_param_env_vars_enabled %}
{% include "README_SNIPPETS/USER_GROUP_IDENTIFIERS.j2" | trim %}
{% endif %}
{% include "README_SNIPPETS/DOCKER_MODS.j2" | trim %}
{% include "README_SNIPPETS/SUPPORT_INFO.j2" | trim %}
{% include "README_SNIPPETS/UPDATING_INFO.j2" | trim %}
{% include "README_SNIPPETS/BUILDING_LOCALLY.j2" | trim %}
{% if init_diagram is defined and init_diagram %}
To help with development, we generate this dependency graph.
??? info "Init dependency graph"
```d2
{{ init_diagram | indent(4) | trim }}
```
{% endif %}
{% include "README_SNIPPETS/VERSIONS.j2" | trim %}