Docker defaults to running as a non root user
The default image runs as the root user. It is recommended to run app as a non-root user by default. rustdesk/rustdesk-server rustdesk/rustdesk-server-s6
Dockerfile: FROM rustdesk/rustdesk-server-s6:1.1.14 WORKDIR /data RUN adduser -g rustdesk -s /bin/sh -D -u 2000 rustdesk USER rustdesk
After rebuilding, it runs well, but there are unnecessary steps
Couldn't you just add user: 1005:1005 to your docker compose file?
Couldn't you just add
user: 1005:1005to your docker compose file?
When I try user: 'xxxx:yyy' I get an error although both folders hubs and hbbr belong to xxxx:yyy
[2025-12-01 20:02:27.447692 +00:00] ERROR [libs/hbb_common/src/config.rs:538] Failed to store config: Failed to create directory [2025-12-01 20:02:27.447746 +00:00] ERROR [libs/hbb_common/src/config.rs:538] Failed to store config: Failed to create directory