From a216a0eb4dda902e24ab147fbdecd9fc665ac89f Mon Sep 17 00:00:00 2001 From: thelamer Date: Thu, 7 Dec 2023 18:52:03 -0800 Subject: [PATCH] add shm setting --- README.md | 3 +++ readme-vars.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 80720f5..83243a1 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ services: ports: - 3000:3000 - 3001:3001 + shm_size: "1gb" restart: unless-stopped ``` @@ -133,6 +134,7 @@ docker run -d \ -p 3000:3000 \ -p 3001:3001 \ -v /path/to/config:/config \ + --shm-size="1gb" \ --restart unless-stopped \ lscr.io/linuxserver/ferdium:latest ``` @@ -149,6 +151,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 and files. | +| `--shm-size=` | Required for electron apps to fucntion properly. | | `--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. | ## Environment variables from files (Docker secrets) diff --git a/readme-vars.yml b/readme-vars.yml index ece0190..5870661 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -29,6 +29,8 @@ param_usage_include_ports: true param_ports: - { external_port: "3000", internal_port: "3000", port_desc: "Ferdium desktop gui." } - { external_port: "3001", internal_port: "3001", port_desc: "Ferdium desktop gui HTTPS." } +custom_params: + - { name: "shm-size", name_compose: "shm_size", value: "1gb",desc: "Required for electron apps to fucntion properly." } opt_security_opt_param: true opt_security_opt_param_vars: - { 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." }