Skip to content

Commit 10e3fdf

Browse files
committed
syntax and readme updates
1 parent d554507 commit 10e3fdf

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ RUN \
6363
COPY /root /
6464

6565
# ports and volumes
66-
EXPOSE 3000
66+
EXPOSE 3001
6767
VOLUME /config

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ By default, this container has no authentication. The optional `CUSTOM_USER` and
7878

7979
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.
8080

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+
8183
### Options in all Selkies-based GUI containers
8284

8385
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.
@@ -220,8 +222,6 @@ services:
220222
bambustudio:
221223
image: lscr.io/linuxserver/bambustudio:latest
222224
container_name: bambustudio
223-
security_opt:
224-
- seccomp:unconfined #optional
225225
environment:
226226
- PUID=1000
227227
- PGID=1000
@@ -232,7 +232,7 @@ services:
232232
ports:
233233
- 3000:3000
234234
- 3001:3001
235-
shm_size: "1gb" #optional
235+
shm_size: "1gb"
236236
restart: unless-stopped
237237
```
238238
@@ -241,15 +241,14 @@ services:
241241
```bash
242242
docker run -d \
243243
--name=bambustudio \
244-
--security-opt seccomp=unconfined `#optional` \
245244
-e PUID=1000 \
246245
-e PGID=1000 \
247246
-e TZ=Etc/UTC \
248247
-e DARK_MODE=true `#optional` \
249248
-p 3000:3000 \
250249
-p 3001:3001 \
251250
-v /path/to/bambustudio/config:/config \
252-
--shm-size="1gb" `#optional` \
251+
--shm-size="1gb" \
253252
--restart unless-stopped \
254253
lscr.io/linuxserver/bambustudio:latest
255254
```
@@ -267,8 +266,7 @@ Containers are configured using parameters passed at runtime (such as those abov
267266
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
268267
| `-e DARK_MODE=true` | Set this to true to enable dark mode for Bambu Studio. |
269268
| `-v /config` | Users home directory in the container, stores program settings and files. |
270-
| `--shm-size=` | We set this to 1 gig to prevent modern applications from crashing. |
271-
| `--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. |
269+
| `--shm-size=` | Recommended for all desktop images. |
272270

273271
## Environment variables from files (Docker secrets)
274272

readme-vars.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ param_usage_include_ports: true
2626
param_ports:
2727
- {external_port: "3000", internal_port: "3000", port_desc: "Bambu Studio desktop gui HTTP, must be proxied."}
2828
- {external_port: "3001", internal_port: "3001", port_desc: "Bambu Studio desktop gui HTTPS."}
29-
opt_security_opt_param: true
30-
opt_security_opt_param_vars:
31-
- {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."}
32-
opt_custom_params:
33-
- {name: "shm-size", name_compose: "shm_size", value: "1gb", desc: "We set this to 1 gig to prevent modern applications from crashing."}
29+
custom_params:
30+
- {name: "shm-size", name_compose: "shm_size", value: "1gb", desc: "Recommended for all desktop images."}
3431
# Selkies blurb settings
3532
selkies_blurb: true
3633
show_nvidia: true

0 commit comments

Comments
 (0)