Skip to content

Commit 6cbada1

Browse files
Bot Updating Documentation
1 parent 09bd5f4 commit 6cbada1

File tree

1 file changed

+382
-0
lines changed

1 file changed

+382
-0
lines changed

docs/images/docker-sealskin.md

Lines changed: 382 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,382 @@
1+
---
2+
title: sealskin
3+
tags:
4+
- Remote Desktop
5+
- Business
6+
description: "[Sealskin](https://github.com/selkies-project/sealskin/) is a self-hosted, client-server platform that enables users to run powerful, containerized desktop applications streamed directly to a web browser. It uses a browser extension to intercept user actions—such as clicking a link or downloading a file and redirects them to a secure, isolated application environment running on a remote server."
7+
---
8+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
9+
<!-- Please read https://github.com/linuxserver/docker-sealskin/blob/master/.github/CONTRIBUTING.md -->
10+
# [linuxserver/sealskin](https://github.com/linuxserver/docker-sealskin)
11+
12+
[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Fsealskin?color=94398d&label-color=555555&logo-color=ffffff&style=for-the-badge&package-type=docker)](https://scarf.sh)
13+
[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-sealskin.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-sealskin)
14+
[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-sealskin.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-sealskin/releases)
15+
[![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub%20Package&logo=github)](https://github.com/linuxserver/docker-sealskin/packages)
16+
[![GitLab Container Registry](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitLab%20Registry&logo=gitlab)](https://gitlab.com/linuxserver.io/docker-sealskin/container_registry)
17+
[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/sealskin)
18+
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/sealskin.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/sealskin)
19+
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/sealskin.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/sealskin)
20+
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-sealskin%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-sealskin/job/master/)
21+
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fsealskin%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/sealskin/latest/index.html)
22+
23+
[Sealskin](https://github.com/selkies-project/sealskin/) is a self-hosted, client-server platform that enables users to run powerful, containerized desktop applications streamed directly to a web browser. It uses a browser extension to intercept user actions—such as clicking a link or downloading a file and redirects them to a secure, isolated application environment running on a remote server.
24+
25+
[![sealskin](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/selkies-logo.png)](https://github.com/selkies-project/sealskin/)
26+
27+
## Supported Architectures
28+
29+
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
30+
31+
Simply pulling `lscr.io/linuxserver/sealskin:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
32+
33+
The architectures supported by this image are:
34+
35+
| Architecture | Available | Tag |
36+
| :----: | :----: | ---- |
37+
| x86-64 || amd64-\<version tag\> |
38+
| arm64 || arm64v8-\<version tag\> |
39+
40+
## Application Setup
41+
42+
This image hosts the server component for the SealSkin platform. Two ports are used to access the platform from the SealSkin browser extension 8000 the api port and 8443 for app sessions.
43+
44+
Download the browser extension from [HERE](https://chromewebstore.google.com/detail/sealskin-isolation/lclgfmnljgacfdpmmmjmfpdelndbbfhk) or land on port 8000 and download the zip bundled with this server and install unpacked.
45+
In the options for the extension enter manual configuration and using the "admin" user fill out the endpoint for the server and the keys obtained via first run container logs or generated yourself.
46+
47+
## Basic requirements
48+
49+
Every variable listed in the run example is required in this current version, the only backend provider to launch containers is Docker. This container is designed to work on the default bridge network for the server and launch containers into that network and proxy their internal traffic. The storage paths are required for key and storage management while their mount paths are adapted from within the container to be run on the host for launched sessions. Everyting in the stack runs as the PUID and PGID down to the container desktop sessions, it is important that the user you use has access to the `/config` and `/storage` paths. Make note of your admin private key and server public key on first container init logs you will need that to configure the browser extension and administrate the server.
50+
51+
## Key & Certificate Management
52+
53+
The server requires several cryptographic keys to function. You can either let the server perform an automatic setup on its first run or manually provide your own keys for more control.
54+
55+
### Automatic First-Run Setup (Recommended)
56+
57+
This is the simplest method. On the first launch with an empty `/config` volume:
58+
59+
1. An init process automatically generates the mandatory server key (`server_key.pem`) and a self-signed SSL certificate for the proxy (`proxy_key.pem`, `proxy_cert.pem`).
60+
2. The application will then detect that no administrator exists, create a default user named `admin`, and output its **private key** directly to the container logs.
61+
62+
Your only action is to check the logs immediately after the first startup, copy the entire private key block for the `admin` user, and save it securely. **This key will not be shown again.**
63+
64+
### Manual Pre-Configuration (Advanced)
65+
66+
If you wish to use your own administrator key or provide a valid SSL certificate, you can place the necessary files in the `/config` volume **before** the first launch.
67+
68+
* **To use a custom Admin Key:**
69+
1. Generate your own RSA keypair.
70+
2. Create a file containing only your **public key** PEM data at the following location:
71+
* **Path:** `/path/to/config/.config/sealskin/keys/admins/admin`
72+
3. The server will detect this file and skip the automatic admin creation. You will use your corresponding private key to log in from the extension.
73+
74+
* **To use a custom SSL Certificate:**
75+
* Place your SSL private key and certificate file at these locations. This will override the self-signed certificate generated by the init process.
76+
* **Key Path:** `/path/to/config/ssl/proxy_key.pem`
77+
* **Cert Path:** `/path/to/config/ssl/proxy_cert.pem`
78+
79+
* **To use a custom Server E2EE Key:**
80+
* Place your RSA private key at this location. This is the core key for the API's end-to-end encryption and validates the server when a user sets the servers public key when configuring the extension.
81+
* **Path:** `/path/to/config/ssl/server_key.pem`
82+
* **Generation Command:** `openssl genpkey -algorithm RSA -out /path/to/config/ssl/server_key.pem -pkeyopt rsa_keygen_bits:4096`
83+
* To obtain the corresponding public key (which is needed by the browser extension), you can extract it from your private key with this command:
84+
* **Extraction Command:** `openssl rsa -in server_key.pem -pubout`
85+
86+
## Usage
87+
88+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
89+
90+
!!! info
91+
92+
Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
93+
94+
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
95+
96+
```yaml
97+
---
98+
services:
99+
sealskin:
100+
image: lscr.io/linuxserver/sealskin:latest
101+
container_name: sealskin
102+
network_mode: bridge
103+
environment:
104+
- PUID=1000
105+
- PGID=1000
106+
- TZ=Etc/UTC
107+
volumes:
108+
- /path/to/sealskin/config:/config
109+
- /path/to/sealskin/storage:/storage
110+
- /var/run/docker.sock:/var/run/docker.sock
111+
ports:
112+
- 8000:8000
113+
- 8443:8443
114+
restart: unless-stopped
115+
```
116+
117+
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
118+
119+
```bash
120+
docker run -d \
121+
--name=sealskin \
122+
--net=bridge \
123+
-e PUID=1000 \
124+
-e PGID=1000 \
125+
-e TZ=Etc/UTC \
126+
-p 8000:8000 \
127+
-p 8443:8443 \
128+
-v /path/to/sealskin/config:/config \
129+
-v /path/to/sealskin/storage:/storage \
130+
-v /var/run/docker.sock:/var/run/docker.sock \
131+
--restart unless-stopped \
132+
lscr.io/linuxserver/sealskin:latest
133+
```
134+
135+
## Parameters
136+
137+
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.
138+
139+
### Ports (`-p`)
140+
141+
| Parameter | Function |
142+
| :----: | --- |
143+
| `8000:8000` | API communication port. |
144+
| `8443:8443` | App session port. |
145+
146+
#### Networking (`--net`)
147+
148+
| Parameter | Function |
149+
| :-----: | --- |
150+
| `--net=bridge` | Use default bridge network |
151+
152+
### Environment Variables (`-e`)
153+
154+
| Env | Function |
155+
| :----: | --- |
156+
| `PUID=1000` | for UserID - see below for explanation |
157+
| `PGID=1000` | for GroupID - see below for explanation |
158+
| `TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
159+
160+
### Volume Mappings (`-v`)
161+
162+
| Volume | Function |
163+
| :----: | --- |
164+
| `/config` | All configuration files and metadata for the application. |
165+
| `/storage` | All file storage for home directories and ephemeral mounts. |
166+
| `/var/run/docker.sock` | Docker socket, required to spin up application containers. |
167+
168+
#### Miscellaneous Options
169+
170+
| Parameter | Function |
171+
| :-----: | --- |
172+
173+
## Environment variables from files (Docker secrets)
174+
175+
You can set any environment variable from a file by using a special prepend `FILE__`.
176+
177+
As an example:
178+
179+
```bash
180+
-e FILE__MYVAR=/run/secrets/mysecretvariable
181+
```
182+
183+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
184+
185+
## Umask for running applications
186+
187+
For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional `-e UMASK=022` setting.
188+
Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up [here](https://en.wikipedia.org/wiki/Umask) before asking for support.
189+
190+
## User / Group Identifiers
191+
192+
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
193+
194+
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
195+
196+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
197+
198+
```bash
199+
id your_user
200+
```
201+
202+
Example output:
203+
204+
```text
205+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
206+
```
207+
208+
## Docker Mods
209+
210+
[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=sealskin&query=%24.mods%5B%27sealskin%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=sealskin "view available mods for this container.") [![Docker Universal Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=universal&query=%24.mods%5B%27universal%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=universal "view available universal mods.")
211+
212+
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
213+
214+
## Support Info
215+
216+
* Shell access whilst the container is running:
217+
218+
```bash
219+
docker exec -it sealskin /bin/bash
220+
```
221+
222+
* To monitor the logs of the container in realtime:
223+
224+
```bash
225+
docker logs -f sealskin
226+
```
227+
228+
* Container version number:
229+
230+
```bash
231+
docker inspect -f '{{ index .Config.Labels "build_version" }}' sealskin
232+
```
233+
234+
* Image version number:
235+
236+
```bash
237+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/sealskin:latest
238+
```
239+
240+
## Updating Info
241+
242+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
243+
244+
Below are the instructions for updating containers:
245+
246+
### Via Docker Compose
247+
248+
* Update images:
249+
* All images:
250+
251+
```bash
252+
docker-compose pull
253+
```
254+
255+
* Single image:
256+
257+
```bash
258+
docker-compose pull sealskin
259+
```
260+
261+
* Update containers:
262+
* All containers:
263+
264+
```bash
265+
docker-compose up -d
266+
```
267+
268+
* Single container:
269+
270+
```bash
271+
docker-compose up -d sealskin
272+
```
273+
274+
* You can also remove the old dangling images:
275+
276+
```bash
277+
docker image prune
278+
```
279+
280+
### Via Docker Run
281+
282+
* Update the image:
283+
284+
```bash
285+
docker pull lscr.io/linuxserver/sealskin:latest
286+
```
287+
288+
* Stop the running container:
289+
290+
```bash
291+
docker stop sealskin
292+
```
293+
294+
* Delete the container:
295+
296+
```bash
297+
docker rm sealskin
298+
```
299+
300+
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
301+
* You can also remove the old dangling images:
302+
303+
```bash
304+
docker image prune
305+
```
306+
307+
### Image Update Notifications - Diun (Docker Image Update Notifier)
308+
309+
!!! tip
310+
311+
We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
312+
313+
## Building locally
314+
315+
If you want to make local modifications to these images for development purposes or just to customize the logic:
316+
317+
```bash
318+
git clone https://github.com/linuxserver/docker-sealskin.git
319+
cd docker-sealskin
320+
docker build \
321+
--no-cache \
322+
--pull \
323+
-t lscr.io/linuxserver/sealskin:latest .
324+
```
325+
326+
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
327+
328+
```bash
329+
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset
330+
```
331+
332+
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
333+
334+
To help with development, we generate this dependency graph.
335+
336+
??? info "Init dependency graph"
337+
338+
```d2
339+
"sealskin:latest": {
340+
docker-mods
341+
base {
342+
fix-attr +\nlegacy cont-init
343+
}
344+
docker-mods -> base
345+
legacy-services
346+
custom services
347+
init-services -> legacy-services
348+
init-services -> custom services
349+
custom services -> legacy-services
350+
legacy-services -> ci-service-check
351+
init-migrations -> init-adduser
352+
init-os-end -> init-config
353+
init-config -> init-config-end
354+
init-crontab-config -> init-config-end
355+
init-sealskin -> init-config-end
356+
init-config -> init-crontab-config
357+
init-mods-end -> init-custom-files
358+
init-adduser -> init-device-perms
359+
base -> init-envfile
360+
base -> init-migrations
361+
init-config-end -> init-mods
362+
init-mods-package-install -> init-mods-end
363+
init-mods -> init-mods-package-install
364+
init-adduser -> init-os-end
365+
init-device-perms -> init-os-end
366+
init-envfile -> init-os-end
367+
init-config -> init-sealskin
368+
init-custom-files -> init-services
369+
init-services -> svc-cron
370+
svc-cron -> legacy-services
371+
base -> svc-sealskin
372+
svc-sealskin -> legacy-services
373+
}
374+
Base Images: {
375+
"baseimage-alpine:3.22"
376+
}
377+
"sealskin:latest" <- Base Images
378+
```
379+
380+
## Versions
381+
382+
* **31.10.25:** - Initial Release.

0 commit comments

Comments
 (0)