Run rustdesk in docker container quickly

First create data directory. The key file will be generated here.

mkdir data

Run hbbr:

docker run -d \
  --name hbbr \
  --network host \
  -v $(pwd)/data:/root \
  --restart unless-stopped \
  rustdesk/rustdesk-server:latest hbbr

Run hbbs, it depends on hbbr:

docker run -d \
  --name hbbs \
  --network host \
  --restart unless-stopped \
  --volume $(pwd)/data:/root \
  --link hbbr:hbbr \
  rustdesk/rustdesk-server:latest hbbs

After this 2 containers started, get the key file:

cat data/id_ed25519.pub

The content of the key file can be used here.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *