Hardened rootless RustDesk Server (hbbs + hbbr) built from source on Debian 13, 0 fixable CVEs.
784
A hardened, rootless, read-only-rootfs-compatible RustDesk Server (hbbs, hbbr, and rustdesk-utils) compiled from official rustdesk/rustdesk-server source on Debian 13 (trixie-slim) — maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/rustdeskghcr.io/dgcosenza/rustdesk (identical signed multi-arch digest)dgcosenza/rustdesk-dockerdgcosenza/rustdesk replaces both rustdesk/rustdesk-server-s6 (combined MODE=both, default) and rustdesk/rustdesk-server (standalone command: ["hbbs", ...] or command: ["hbbr"]) in a single rootless (UID/GID 1000:1000) multi-arch container with zero s6-overlay overhead, tini PID 1, ENCRYPTED_ONLY=1 support, Docker secret keypair validation via rustdesk-utils, and mode-aware TCP port healthchecks.
| Component | Resolved Version |
|---|---|
| RustDesk Server | 1.1.16 |
| Rust toolchain | 1.100.0 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 38.4 MB, arm64: 119.7 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/rustdesk@sha256:add0ab0be9ea5d693a52a21007d34d61f71bd5306a1fb8402c2806986766f9a9 |
| GHCR mirror | ghcr.io/dgcosenza/rustdesk@sha256:add0ab0be9ea5d693a52a21007d34d61f71bd5306a1fb8402c2806986766f9a9 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (13 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
latest | Moving | Latest verified multi-arch build passing all CVE, Dive, and smoke gates. |
<version> (e.g. 1.1.16) | Moving | Latest verified build for that upstream rustdesk-server release. |
<version>-<YYYYMMDD> | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Git commit tag from this repository. |
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Native Rust build, combined + standalone hbbs/hbbr smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
linux/arm64 | Published & natively tested | Native Rust build, combined + standalone hbbs/hbbr smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
Volume ownership note:
docker-compose.example.ymldefaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by1000:1000(mkdir -p ./data && chown 1000:1000 ./data) beforedocker compose up -d.
mkdir -p ./data && chown 1000:1000 ./data
docker run -d --name rustdesk --restart unless-stopped \
--read-only --tmpfs /tmp:uid=1000,gid=1000 \
--cap-drop ALL --security-opt no-new-privileges:true \
-p 21115:21115/tcp -p 21116:21116/tcp -p 21116:21116/udp -p 21117:21117/tcp \
-v "$(pwd)/data:/data" \
-e RELAY="rustdesk.example.test:21117" -e ENCRYPTED_ONLY="1" \
dgcosenza/rustdesk:latest
See docker-compose.example.yml.
| Variable | Default | Description |
|---|---|---|
MODE | both | Service mode: both (runs hbbr + hbbs), hbbs (rendezvous only), or hbbr (relay only). Overridden when passing hbbs/hbbr directly as container command. |
RELAY | (empty) | External relay address passed to hbbs -r (e.g. rustdesk.example.test:21117). |
ENCRYPTED_ONLY | 0 | Set to 1 to enforce key-authenticated connections (-k _). |
KEY_PUB / KEY_PRIV | (empty) | Optional Ed25519 keypair (prefer /run/secrets/key_pub and /run/secrets/key_priv). Auto-generated in /data when omitted. |
TZ | Etc/UTC | Container timezone. |
Ports: 21115/tcp (NAT type test), 21116/tcp + 21116/udp (ID registration & heartbeat), 21117/tcp (relay), 21118/tcp & 21119/tcp (optional web clients). Volumes: /data (SQLite DB + Ed25519 keys, owned by 1000:1000). User: rustdesk (UID/GID 1000:1000). PID 1: tini.
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD ["/usr/local/bin/rustdesk-healthcheck"]
Performs mode-aware live TCP probes on 127.0.0.1:21116 (hbbs) and/or 127.0.0.1:21117 (hbbr). Verified on both amd64 and arm64; do not disable in Compose.
rustdesk/rustdesk-server or rustdesk-server-s6/data (containing id_ed25519, id_ed25519.pub, and db_v2.sqlite3) is owned by 1000:1000.dgcosenza/rustdesk@sha256:<digest>; both single-container RELAY/ENCRYPTED_ONLY and split command: ["hbbs"]/command: ["hbbr"] deployments work unmodified.cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/rustdesk-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/rustdesk:latest
gh attestation verify oci://ghcr.io/dgcosenza/rustdesk:latest --owner dgcosenza
UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.1000:1000 with cap_drop: [ALL], no-new-privileges:true, and read_only: true.SECURITY.md.docker buildx build --platform linux/amd64 --load -t dgcosenza/rustdesk:local .
./tests/smoke.sh dgcosenza/rustdesk:local
.github/workflows/daily.yml runs daily at 05:39 UTC with --no-cache: resolves latest rustdesk/rustdesk-server release, Rust toolchain, and debian:13.8-slim digest; compiles and tests hbbs + hbbr + rustdesk-utils with Dive + Trivy + Grype gates on amd64 and arm64; publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional secondary OCI mirrors); syncs docs & Hub overview; and manages a single ci-failure issue.
debian:13.8-slim: Transparent provenance from tagged rustdesk/rustdesk-server commits rather than opaque prebuilt binaries.tini dual-process supervisor instead of s6-overlay: Runs hbbr + hbbs cleanly as non-root UID 1000 with read-only rootfs and exits immediately if either daemon terminates.packaging: MIT): MIT License — copyright Daniel G. Cosenza from FNX Labs.rustdesk/rustdesk-server (upstream: AGPL-3.0-only): AGPL-3.0. See THIRD-PARTY-NOTICES.md.Maintained by Daniel G. Cosenza from FNX Labs. Upstream: rustdesk/rustdesk-server.
Content type
Image
Digest
sha256:add0ab0be…
Size
36.6 MB
Last updated
about 3 hours ago
docker pull dgcosenza/rustdesk