diff --git a/Dockerfile b/Dockerfile index 0a4697d..d47d263 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1 + FROM ghcr.io/linuxserver/baseimage-selkies:ubuntunoble # set version label @@ -58,5 +60,5 @@ RUN \ COPY /root / # ports and volumes -EXPOSE 3000 +EXPOSE 3001 VOLUME /config diff --git a/README.md b/README.md index af7d24f..e3d3cd1 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ By default, this container has no authentication. The optional `CUSTOM_USER` and 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. +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. + ### Options in all Selkies-based GUI containers 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. @@ -231,6 +233,7 @@ services: ports: - 3000:3000 - 3001:3001 + shm_size: "1gb" restart: unless-stopped ``` @@ -246,6 +249,7 @@ docker run -d \ -p 3000:3000 \ -p 3001:3001 \ -v /path/to/config:/config \ + --shm-size="1gb" \ --restart unless-stopped \ lscr.io/linuxserver/mysql-workbench:latest ``` @@ -262,6 +266,7 @@ Containers are configured using parameters passed at runtime (such as those abov | `-e PGID=1000` | for GroupID - see below for explanation | | `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). | | `-v /config` | Users home directory in the container, stores program settings. | +| `--shm-size=` | Recommended for all desktop images. | | `--cap-add=IPC_LOCK` | Required for keyring functionality. | ### Portainer notice diff --git a/readme-vars.yml b/readme-vars.yml index feb7dff..5c21384 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -23,6 +23,8 @@ param_ports: cap_add_param: true cap_add_param_vars: - {cap_add_var: "IPC_LOCK", desc: "Required for keyring functionality."} +custom_params: + - {name: "shm-size", name_compose: "shm_size", value: "1gb", desc: "Recommended for all desktop images."} # Selkies blurb settings selkies_blurb: true show_nvidia: true