From eaf57b4a40ba9ba86cdb11a4885595f557b1ba15 Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Fri, 1 Jul 2022 21:37:35 +0800 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 69416db..8e76582 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,13 @@ These images are build against `ubuntu-20.04` with the only addition of the bina You can start these images directly with `docker run` with these commands: +``` +docker run --name hbbs --net=host -v "$PWD:/root" -d rustdesk/rustdesk-server:latest hbbs -r +docker run --name hbbr --net=host -v "$PWD:/root" -d rustdesk/rustdesk-server:latest hbbr +``` + +or without --net=host, but P2P direct connection can not work. + ```bash docker run --name hbbs -p 21115:21115 -p 21116:21116 -p 21116:21116/udp -p 21118:21118 -v "$PWD:/root" -d rustdesk/rustdesk-server:latest hbbs -r docker run --name hbbr -p 21117:21117 -p 21119:21119 -v "$PWD:/root" -d rustdesk/rustdesk-server:latest hbbr @@ -120,6 +127,16 @@ The S6-overlay acts as a supervisor and keeps both process running, so with this You can start these images directly with `docker run` with this command: +or without --net=host, but P2P direct connection can not work. + +```bash +docker run --name rustdesk-server \ + --net=host \ + -e "RELAY=rustdeskrelay.example.com" \ + -e "ENCRYPTED_ONLY=1" \ + -v "$PWD/data:/data" -d rustdesk/rustdesk-server-s6:latest +``` + ```bash docker run --name rustdesk-server \ -p 21115:21115 -p 21116:21116 -p 21116:21116/udp \