You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible/roles/documentation/templates/README_SNIPPETS/SELKIES.j2
+61-58Lines changed: 61 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -1,82 +1,81 @@
1
-
**Modern GUI desktop apps have issues with the latest Docker and syscall compatibility, you can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp**
1
+
**Modern GUI desktop apps may have compatibility issues with the latest Docker syscall restrictions. You can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp versions.**
2
2
3
3
### Security
4
4
5
-
{{ "Do not put this on the Internet if you do not know what you are doing." | admonition(flavour=markdown, severity="warning") }}
5
+
{{ "This container provides privileged access to the host system. Do not expose it to the Internet unless you have secured it properly." | admonition(flavour=markdown, severity="warning") }}
6
6
7
-
By default this container has no authentication and the optional environment variables `CUSTOM_USER` and `PASSWORD` to enable basic http auth via the embedded NGINX server should only be used to locally secure the container from unwanted access on a local network. If exposing this to the Internet we recommend putting it behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), and ensuring a secure authentication solution is in place. From the web interface a terminal can be launched and it is configured for passwordless sudo, so anyone with access to it can install and run whatever they want along with probing your local network.
7
+
**HTTPS is required for full functionality.** Modern browser features such as WebCodecs, used for video and audio, will not function over an insecure HTTP connection.
8
8
9
-
### Options in all Selkies based GUI containers
9
+
By default, this container has no authentication. The optional `CUSTOM_USER` and `PASSWORD` environment variables enable basic HTTP auth, which is suitable only for securing the container on a trusted local network. For internet exposure, we strongly recommend placing the container behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), with a robust authentication mechanism.
10
10
11
-
This container is based on [Docker Baseimage Selkies](https://github.com/linuxserver/docker-baseimage-selkies) which means there are additional environment variables and run configurations to enable or disable specific functionality.
11
+
The web interface includes a terminal with passwordless `sudo` access. Any user with access to the GUI can gain root control within the container, install arbitrary software, and probe your local network.
12
12
13
-
#### Optional environment variables
13
+
### Options in all Selkies-based GUI containers
14
14
15
-
| Variable | Description |
16
-
| :----: | --- |
17
-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default {%ifexternal_http_portisdefined%}{{ external_http_port }}{%else%}3000{%endif%}. |
18
-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default {%ifexternal_https_portisdefined%}{{ external_https_port }}{%else%}3001{%endif%}. |
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
21
-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
22
-
| TITLE | The page title displayed on the web browser, default "Selkies". |
23
-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
24
-
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
25
-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
26
-
| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. |
27
-
| NO_FULL | Do not automatically fullscreen applications when using openbox. |
28
-
| DISABLE_ZINK | Do not set zink related environment variables when a video card is detected. |
29
-
| WATERMARK_PNG | Full path inside the container to a watermark png IE `/usr/share/selkies/www/icon.png` |
30
-
| WATERMARK_LOCATION | Where to paint the image over the stream integer options below |
31
-
32
-
* 1 - Top Left
33
-
* 2 - Top Right
34
-
* 3 - Bottom Left
35
-
* 4 - Bottom Right
36
-
* 5 - Centered
37
-
* 6 - Animated
38
-
39
-
#### Optional run configurations
15
+
This container is based on [Docker Baseimage Selkies](https://github.com/linuxserver/docker-baseimage-selkies), which provides the following environment variables and run configurations to customize its functionality.
16
+
17
+
#### Optional Environment Variables
40
18
41
19
| Variable | Description |
42
20
| :----: | --- |
43
-
| `--privileged` | Will start a Docker in Docker (DinD) setup inside the container to use docker in an isolated environment. For increased performance mount the Docker directory inside the container to the host IE `-v /home/user/docker-data:/var/lib/docker`. |
44
-
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
| `--privileged` | Starts a Docker-in-Docker (DinD) environment. For better performance, mount the Docker data directory from the host, e.g., `-v /path/to/docker-data:/var/lib/docker`. |
41
+
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mounts the host's Docker socket to manage host containers from within this container. |
45
42
46
43
### Language Support - Internationalization
47
44
48
-
The environment variable `LC_ALL` can be used to start this container in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some supported languages:
45
+
To launch the desktop session in a different language, set the `LC_ALL` environment variable. For example:
**Nvidia support is not compatible with Alpinebased images as Alpine lacks Nvidia drivers**
60
+
**Note: Nvidia support is not available for Alpine-based images.**
64
61
65
-
Nvidia support is available by leveraging Zink for OpenGL support. This can be enabled with the following run flags:
62
+
Nvidia GPU support is available by leveraging Zink for OpenGL. When a compatible Nvidia GPU is passed through, it will also be **automatically utilized for hardware-accelerated video stream encoding** (using the `x264enc` full-frame profile), significantly reducing CPU load.
66
63
67
-
| Variable | Description |
64
+
Enable Nvidia support with the following runtime flags:
65
+
66
+
| Flag | Description |
68
67
| :----: | --- |
69
-
| --gpus all | This can be filtered down but for most setups this will pass the one Nvidia GPU on the system |
70
-
| --runtime nvidia | Specify the Nvidia runtime which mounts drivers and tools in from the host |
68
+
| `--gpus all` | Passes all available host GPUs to the container. This can be filtered to specific GPUs. |
69
+
| `--runtime nvidia` | Specifies the Nvidia runtime, which provides the necessary drivers and tools from the host. |
71
70
72
-
The compose syntax is slightly different for this as you will need to set nvidia as the default runtime:
71
+
For Docker Compose, you must first configure the Nvidia runtime as the default on the host:
Then, assign the GPU to the service in your `compose.yaml`:
80
79
81
80
```
82
81
services:
@@ -91,21 +90,25 @@ services:
91
90
capabilities: [compute,video,graphics,utility]
92
91
```
93
92
94
-
{%endif%}### Application management
93
+
{%endif%}### Application Management
94
+
95
+
There are two methods for installing applications inside the container: PRoot Apps (recommended for persistence) and Native Apps.
96
+
97
+
#### PRoot Apps (Persistent)
95
98
96
-
#### PRoot Apps
99
+
Natively installed packages (e.g., via `apt-get install`) will not persist if the container is recreated. To retain applications and their settings across container updates, we recommend using [proot-apps](https://github.com/linuxserver/proot-apps). These are portable applications installed to the user's persistent `$HOME` directory.
97
100
98
-
If you run system native installations of software IE `sudo apt-get install filezilla` and then upgrade or destroy/re-create the container that software will be removed and the container will be at a clean state. For some users that will be acceptable and they can update their system packages as well using system native commands like `apt-get upgrade`. If you want Docker to handle upgrading the container and retain your applications and settings we have created [proot-apps](https://github.com/linuxserver/proot-apps) which allow portable applications to be installed to persistent storage in the user's `$HOME` directory and they will work in a confined Docker environment out of the box. These applications and their settings will persist upgrades of the base container and can be mounted into different flavors ofSelkiess based containers on the fly. This can be achieved from the command line with:
101
+
To install an application, use the command line inside the container:
99
102
100
103
```
101
104
proot-apps install filezilla
102
105
```
103
106
104
-
PRoot Apps is included in all Selkies based containers, a list of linuxserver.io supported applications is located [HERE](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
107
+
A list of supported applications is available [here](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
105
108
106
-
#### Native Apps
109
+
#### Native Apps (Non-Persistent)
107
110
108
-
It is possible to install extra packages during container start using [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install). It might increase starting time significantly. PRoot is preferred.
111
+
You can install packages from the system's native repository using the [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install) mod. This method will increase the container's start time and is not persistent. Add the following to your `compose.yaml`:
0 commit comments