Skip to content

Commit 80b31d8

Browse files
committed
syntax and readme updates
1 parent 2345064 commit 80b31d8

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-selkies:alpine322
24

35
# set version label
@@ -50,6 +52,6 @@ RUN \
5052
COPY /root /
5153

5254
# ports and volumes
53-
EXPOSE 3000
55+
EXPOSE 3001
5456

5557
VOLUME /config

Dockerfile.aarch64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-alpine322
24

35
# set version label
@@ -50,6 +52,6 @@ RUN \
5052
COPY /root /
5153

5254
# ports and volumes
53-
EXPOSE 3000
55+
EXPOSE 3001
5456

5557
VOLUME /config

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ The architectures supported by this image are:
5858

5959
The application can be accessed at:
6060

61-
* http://yourhost:3000/
6261
* https://yourhost:3001/
6362

6463
### Strict reverse proxies
@@ -79,6 +78,8 @@ By default, this container has no authentication. The optional `CUSTOM_USER` and
7978

8079
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.
8180

81+
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.
82+
8283
### Options in all Selkies-based GUI containers
8384

8485
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.
@@ -186,8 +187,6 @@ services:
186187
libreoffice:
187188
image: lscr.io/linuxserver/libreoffice:latest
188189
container_name: libreoffice
189-
security_opt:
190-
- seccomp:unconfined #optional
191190
environment:
192191
- PUID=1000
193192
- PGID=1000
@@ -197,6 +196,7 @@ services:
197196
ports:
198197
- 3000:3000
199198
- 3001:3001
199+
shm_size: "1gb"
200200
restart: unless-stopped
201201
```
202202
@@ -205,13 +205,13 @@ services:
205205
```bash
206206
docker run -d \
207207
--name=libreoffice \
208-
--security-opt seccomp=unconfined `#optional` \
209208
-e PUID=1000 \
210209
-e PGID=1000 \
211210
-e TZ=Etc/UTC \
212211
-p 3000:3000 \
213212
-p 3001:3001 \
214213
-v /path/to/config:/config \
214+
--shm-size="1gb" \
215215
--restart unless-stopped \
216216
lscr.io/linuxserver/libreoffice:latest
217217
```
@@ -228,7 +228,7 @@ Containers are configured using parameters passed at runtime (such as those abov
228228
| `-e PGID=1000` | for GroupID - see below for explanation |
229229
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
230230
| `-v /config` | Users home directory in the container, stores program settings and documents |
231-
| `--security-opt seccomp=unconfined` | For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker. |
231+
| `--shm-size=` | Recommended for all desktop images. |
232232

233233
## Environment variables from files (Docker secrets)
234234

readme-vars.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,22 @@ development_versions: false
1717
# container parameters
1818
common_param_env_vars_enabled: true
1919
param_container_name: "{{ project_name }}"
20-
param_usage_include_env: true
21-
param_env_vars:
22-
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London."}
2320
param_usage_include_vols: true
2421
param_volumes:
2522
- {vol_path: "/config", vol_host_path: "/path/to/config", desc: "Users home directory in the container, stores program settings and documents"}
2623
param_usage_include_ports: true
2724
param_ports:
2825
- {external_port: "3000", internal_port: "3000", port_desc: "LibreOffice desktop gui HTTP, must be proxied."}
2926
- {external_port: "3001", internal_port: "3001", port_desc: "LibreOffice desktop gui HTTPS."}
30-
opt_security_opt_param: true
31-
opt_security_opt_param_vars:
32-
- {run_var: "seccomp=unconfined", compose_var: "seccomp:unconfined", desc: "For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker."}
27+
custom_params:
28+
- {name: "shm-size", name_compose: "shm_size", value: "1gb", desc: "Recommended for all desktop images."}
3329
# Selkies blurb settings
3430
selkies_blurb: true
3531
# application setup block
3632
app_setup_block_enabled: true
3733
app_setup_block: |
3834
The application can be accessed at:
3935
40-
* http://yourhost:3000/
4136
* https://yourhost:3001/
4237
# init diagram
4338
init_diagram: |

0 commit comments

Comments
 (0)