You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/misc/non-root.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,8 @@ Our images use s6 as a supervisor and that needs to be able to write its service
35
35
* Docker Mods will not be run
36
36
* Custom Services will not be run
37
37
* Custom Scripts will be limited in their functionality
38
-
* You cannot set `no-new-privileges=true` as it will prevent s6 from being able to start the init process
38
+
* You cannot set `no-new-privileges=true` unless you additionally set permissions on /run to match your `user` UID and GID
39
+
* This is because s6 needs `/run` to be owned by the user running the container
39
40
40
41
For all of these reasons, we recommend you *do not* switch existing container instances to run with a non-root user without careful testing.
41
42
@@ -58,6 +59,34 @@ services:
58
59
user: 1000:1000
59
60
```
60
61
62
+
or
63
+
64
+
```yaml
65
+
services:
66
+
sonarr:
67
+
image: lscr.io/linuxserver/radarr:latest
68
+
container_name: radarr
69
+
environment:
70
+
- TZ=Europe/London
71
+
volumes:
72
+
- /path/to/radarr/data:/config
73
+
- /path/to/movies:/movies
74
+
- /path/to/downloadclient-downloads:/downloads
75
+
ports:
76
+
- 7878:7878
77
+
restart: unless-stopped
78
+
user: 1000:1000
79
+
tmpfs:
80
+
- /run:uid=1000,gid=1000,exec
81
+
security_opt:
82
+
- no-new-privileges=true
83
+
```
84
+
61
85
## Support Policy
62
86
63
87
Operation of our images with a non-root user is supported on a Reasonable Endeavours basis and *only* for images which we have specifically tested. These images will have their ability to be run with a non-root user noted in the readme, along with any additional caveats. Please see our [Support Policy](https://linuxserver.io/supportpolicy) for more details.
88
+
89
+
## Change History
90
+
91
+
* 2025-08-13 - Add notes about `no-new-privileges=true`
0 commit comments