rustdesk-server icon indicating copy to clipboard operation
rustdesk-server copied to clipboard

Docker defaults to running as a non root user

Open huai168an opened this issue 10 months ago • 2 comments

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

huai168an avatar Mar 21 '25 02:03 huai168an

Couldn't you just add user: 1005:1005 to your docker compose file?

dieechtenilente avatar Nov 21 '25 10:11 dieechtenilente

Couldn't you just add user: 1005:1005 to 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

boku42 avatar Dec 01 '25 20:12 boku42