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
@@ -82,11 +82,61 @@ The web interface includes a terminal with passwordless `sudo` access. Any user
82
82
83
83
While not generally recommended, certain legacy environments specifically those with older hardware or outdated Linux distributions may require the deactivation of the standard seccomp profile to get containerized desktop software to run. This can be achieved by utilizing the `--security-opt seccomp=unconfined` parameter. It is critical to use this option only when absolutely necessary as it disables a key security layer of Docker, elevating the potential for container escape vulnerabilities.
84
84
85
+
### Hardware Acceleration & The Move to Wayland
86
+
87
+
We are currently transitioning our desktop containers from X11 to Wayland. While X11 is still the default, we strongly encourage users to test the new Wayland mode.
88
+
89
+
**Important:** GPU acceleration support for X11 is being deprecated. Future development for hardware acceleration will focus entirely on the Wayland stack.
90
+
91
+
To enable Wayland mode, set the following environment variable:
92
+
*`-e PIXELFLUX_WAYLAND=true`
93
+
94
+
**Why use Wayland?**
95
+
***Zero Copy Encoding:** When configured correctly with a GPU, the frame is rendered and encoded on the video card without ever being copied to the system RAM. This drastically lowers CPU usage and latency.
96
+
***Modern Stack:** Single-application containers utilize **Labwc** (replacing Openbox) and full desktop containers use **KDE Plasma Wayland**, providing a more modern and secure compositing environment while retaining the same user experience.
97
+
98
+
#### GPU Configuration
99
+
100
+
To use hardware acceleration in Wayland mode, we distinguish between the card used for **Rendering** (3D apps/Desktops) and **Encoding** (Video Stream).
101
+
102
+
**Configuration Variables:**
103
+
*`DRINODE`: The path to the GPU used for **Rendering** (EGL).
104
+
*`DRI_NODE`: The path to the GPU used for **Encoding** (VAAPI/NVENC).
105
+
106
+
If both variables point to the same device, the container will automatically enable **Zero Copy** encoding, significantly reducing CPU usage and latency.
107
+
108
+
##### Intel & AMD (Open Source Drivers)
109
+
110
+
For Intel and AMD GPUs.
111
+
112
+
```yaml
113
+
devices:
114
+
- /dev/dri:/dev/dri
115
+
environment:
116
+
- PIXELFLUX_WAYLAND=true
117
+
# Optional: Specify device if multiple exist (IE: /dev/dri/renderD129)
118
+
- DRINODE=/dev/dri/renderD128
119
+
- DRI_NODE=/dev/dri/renderD128
120
+
```
121
+
122
+
123
+
### SealSkin Compatibility
124
+
125
+
This container is compatible with [SealSkin](https://sealskin.app).
126
+
127
+
SealSkin is a self-hosted, client-server platform that provides secure authentication and collaboration features while using a browser extension to intercept user actions such as clicking a link or downloading a file and redirect them to a secure, isolated application environment running on a remote server.
128
+
129
+
* **SealSkin Server:** [Get it Here](https://github.com/linuxserver/docker-sealskin)
130
+
* **Browser Extension:** [Chrome](https://chromewebstore.google.com/detail/sealskin-isolation/lclgfmnljgacfdpmmmjmfpdelndbbfhk) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/sealskin-isolation/).
131
+
* **Mobile App:** [iOS](https://apps.apple.com/us/app/sealskin/id6758210210) and [Android](https://play.google.com/store/apps/details?id=io.linuxserver.sealskin)
132
+
133
+
85
134
### Options in all Selkies-based GUI containers
86
135
87
-
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.
136
+
This container is based on [Docker Baseimage Selkies](https://github.com/linuxserver/docker-baseimage-selkies).
88
137
89
-
#### Optional Environment Variables
138
+
<details>
139
+
<summary>Click to expand: Optional Environment Variables</summary>
90
140
91
141
| Variable | Description |
92
142
| :----: | --- |
@@ -95,8 +145,8 @@ This container is based on [Docker Baseimage Selkies](https://github.com/linuxse
95
145
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default `3001` |
96
146
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082 |
| DRI_NODE | Enable VAAPI stream encoding and use the specified device IE `/dev/dri/renderD128`|
99
-
| DRINODE | Specify which GPU to use for DRI3 acceleration IE `/dev/dri/renderD129`|
148
+
| DRI_NODE | **Encoding GPU**: Enable VAAPI/NVENC stream encoding and use the specified device IE `/dev/dri/renderD128` |
149
+
| DRINODE | **Rendering GPU**: Specify which GPU to use for EGL/3D acceleration IE `/dev/dri/renderD129` |
100
150
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
101
151
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
102
152
| TITLE | The page title displayed on the web browser, default "Selkies" |
@@ -122,70 +172,52 @@ This container is based on [Docker Baseimage Selkies](https://github.com/linuxse
122
172
- **5**: Centered
123
173
- **6**: Animated
124
174
125
-
#### Optional Run Configurations
175
+
</details>
176
+
177
+
<details>
178
+
<summary>Click to expand: Optional Run Configurations (DinD & GPU Mounts)</summary>
126
179
127
180
| Argument | Description |
128
181
| :----: | --- |
129
182
| `--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`. |
130
183
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mounts the host's Docker socket to manage host containers from within this container. |
131
-
|`--device /dev/dri:/dev/dri`| Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated applications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
132
-
133
-
### Language Support - Internationalization
134
-
135
-
To launch the desktop session in a different language, set the `LC_ALL` environment variable. For example:
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated applications. |
149
185
150
-
This container is compatible with [SealSkin](https://github.com/linuxserver/docker-sealskin).
151
-
152
-
SealSkin is a self-hosted, client-server platform that provides secure authentication and collaboration features while using a browser extension to intercept user actions such as clicking a link or downloading a file and redirect them to a secure, isolated application environment running on a remote server.
186
+
</details>
153
187
154
-
***SealSkin Server:**[Get it Here](https://github.com/linuxserver/docker-sealskin)
<summary>Click to expand: Legacy X11 Resolution & Acceleration</summary>
156
190
157
-
### All GPU Acceleration - use sane resolutions
191
+
**Note:** This section applies only if you are **NOT** using `PIXELFLUX_WAYLAND=true`.
158
192
159
-
When using 3d acceleration via Nvidia DRM or DRI3 it is important to clamp the virtual display to a reasonable max resolution. This can be achieved with the environment setting:
193
+
When using 3d acceleration via Nvidia DRM or DRI3 in X11 mode, it is important to clamp the virtual display to a reasonable max resolution to avoid memory exhaustion or poor performance.
160
194
161
195
* `-e MAX_RESOLUTION=3840x2160`
162
196
163
-
This will set the total virtual framebuffer to 4K, you can also set a manual resolution to achieve this.
164
-
By default the virtual monitor in the session is 16K to support large monitors and dual display configurations. Leaving it this large has no impact on CPU based performance but costs GPU memory usage and memory bandwidth when leveraging one for acceleration. If you have performance issues in an accelerated session, try clamping the resolution to 1080p and work up from there:
197
+
This will set the total virtual framebuffer to 4K. By default, the virtual monitor is 16K. If you have performance issues in an accelerated X11 session, try clamping the resolution to 1080p and work up from there:
165
198
166
199
```
167
200
-e SELKIES_MANUAL_WIDTH=1920
168
201
-e SELKIES_MANUAL_HEIGHT=1080
169
202
-e MAX_RESOLUTION=1920x1080
170
203
```
171
204
172
-
### DRI3 GPU Acceleration
173
-
174
-
For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using:
175
-
176
-
`--device /dev/dri:/dev/dri`
205
+
</details>
177
206
178
-
This feature only supports **Open Source** GPU drivers:
179
-
180
-
| Driver | Description |
181
-
| :----: | --- |
182
-
| Intel | i965 and i915 drivers for Intel iGPU chipsets |
183
-
| AMD | AMDGPU, Radeon, and ATI drivers for AMD dedicated or APU chipsets |
@@ -213,20 +245,19 @@ You can install packages from the system's native repository using the [universa
213
245
- INSTALL_PACKAGES=libfuse2|git|gdb
214
246
```
215
247
216
-
#### Hardening
248
+
### Advanced Configuration
217
249
218
-
These variables can be used to lock down the desktop environment for single-application use cases or to restrict user capabilities.
250
+
<details>
251
+
<summary>Click to expand: Hardening Options</summary>
219
252
220
-
##### Meta Variables
221
-
222
-
These variables act as presets, enabling multiple hardening options at once. Individual options can still be set to override the preset.
253
+
These variables can be used to lock down the desktop environment for single-application use cases or to restrict user capabilities.
223
254
224
255
| Variable | Description |
225
256
| :----: | --- |
226
257
| **`HARDEN_DESKTOP`** | Enables `DISABLE_OPEN_TOOLS`, `DISABLE_SUDO`, and `DISABLE_TERMINALS`. Also sets related Selkies UI settings (`SELKIES_FILE_TRANSFERS`, `SELKIES_COMMAND_ENABLED`, `SELKIES_UI_SIDEBAR_SHOW_FILES`, `SELKIES_UI_SIDEBAR_SHOW_APPS`) if they are not explicitly set by the user. |
227
258
| **`HARDEN_OPENBOX`** | Enables `DISABLE_CLOSE_BUTTON`, `DISABLE_MOUSE_BUTTONS`, and `HARDEN_KEYBINDS`. It also flags `RESTART_APP` if not set by the user, ensuring the primary application is automatically restarted if closed. |
228
259
229
-
##### Individual Hardening Variables
260
+
**Individual Hardening Variables:**
230
261
231
262
| Variable | Description |
232
263
| :--- | --- |
@@ -238,46 +269,27 @@ These variables act as presets, enabling multiple hardening options at once. Ind
238
269
| **`HARDEN_KEYBINDS`** | If true, disables default Openbox keybinds that can bypass other hardening options (e.g., `Alt+F4` to close windows, `Alt+Escape` to show the root menu). |
239
270
| **`RESTART_APP`** | If true, enables a watchdog service that automatically restarts the main application if it is closed. The user's autostart script is made read-only and root owned to prevent tampering. |
240
271
241
-
#### Selkies application settings
272
+
</details>
242
273
243
-
Using environment variables every facet of the application can be configured.
244
-
245
-
##### Booleans and Locking
246
-
Boolean settings accept `true` or `false`. You can also prevent the user from changing a boolean setting in the UI by appending `|locked`. The UI toggle for this setting will be hidden.
247
-
248
-
* **Example**: To force CPU encoding on and prevent the user from disabling it:
249
-
```bash
250
-
-e SELKIES_USE_CPU="true|locked"
251
-
```
274
+
<details>
275
+
<summary>Click to expand: Selkies Application Settings</summary>
252
276
253
-
##### Enums and Lists
254
-
These settings accept a comma-separated list of values. Their behavior depends on the number of items provided:
255
-
256
-
* **Multiple Values**: The first item in the list becomes the default selection, and all items in the list become the available options in the UI dropdown.
257
-
* **Single Value**: The provided value becomes the default, and the UI dropdown is hidden because the choice is locked.
258
-
259
-
* **Example**: Force the encoder to be `jpeg` with no other options available to the user:
260
-
```bash
261
-
-e SELKIES_ENCODER="jpeg"
262
-
```
263
-
264
-
##### Ranges
265
-
Range settings define a minimum and maximum for a value (e.g., framerate).
277
+
Using environment variables every facet of the application can be configured.
266
278
267
-
* **To set a range**: Use a hyphen-separated `min-max` format. The UI will show a slider.
268
-
* **To set a fixed value**: Provide a single number. This will lock the value and hide the UI slider.
279
+
**Booleans and Locking:**
280
+
Boolean settings accept `true` or `false`. You can also prevent the user from changing a boolean setting in the UI by appending `|locked`.
281
+
* Example: `-e SELKIES_USE_CPU="true|locked"`
269
282
270
-
* **Example**: Lock the framerate to exactly 60 FPS.
271
-
```bash
272
-
-e SELKIES_FRAMERATE="60"
273
-
```
283
+
**Enums and Lists:**
284
+
These settings accept a comma-separated list of values. The first item becomes default. If only one item is provided, the UI dropdown is hidden.
285
+
* Example: `-e SELKIES_ENCODER="jpeg"`
274
286
275
-
##### Manual Resolution Mode
276
-
The server can be forced to use a single, fixed resolution for all connecting clients. This mode is automatically activated if `SELKIES_MANUAL_WIDTH`, `SELKIES_MANUAL_HEIGHT`, or `SELKIES_IS_MANUAL_RESOLUTION_MODE` is set.
287
+
**Ranges:**
288
+
Use a hyphen-separated `min-max` format for a slider, or a single number to lock the value.
289
+
* Example: `-e SELKIES_FRAMERATE="60"`
277
290
278
-
* If `SELKIES_MANUAL_WIDTH` and/or `SELKIES_MANUAL_HEIGHT` are set, the resolution is locked to those values.
279
-
* If `SELKIES_IS_MANUAL_RESOLUTION_MODE` is set to `true` without specifying width or height, the resolution defaults to **1024x768**.
280
-
* When this mode is active, the client UI for changing resolution is disabled.
291
+
**Manual Resolution Mode:**
292
+
If `SELKIES_MANUAL_WIDTH` or `SELKIES_MANUAL_HEIGHT` are set, the resolution is locked to those values.
281
293
282
294
| Environment Variable | Default Value | Description |
283
295
| --- | --- | --- |
@@ -338,12 +350,14 @@ The server can be forced to use a single, fixed resolution for all connecting cl
338
350
| `SELKIES_ENABLE_PLAYER3` | `True` | Enable sharing link for gamepad player 3. |
339
351
| `SELKIES_ENABLE_PLAYER4` | `True` | Enable sharing link for gamepad player 4. |
340
352
353
+
</details>
354
+
341
355
## Usage
342
356
343
357
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
344
358
345
359
>[!NOTE]
346
-
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
360
+
>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.
347
361
348
362
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
0 commit comments