一、安装Docker Desktop Installer
二、CMD拉取RustDesk镜像
docker image pull rustdesk/rustdesk-server
三、创建docker-compose.yml文件
services: hbbs: container_name: hbbs image: rustdesk/rustdesk-server:latest command: hbbs -r 公网IP:端口(21117) environment: - "RELAY=hbbr:21117" - "ENCRYPTED_ONLY=1" ports: - 21115:21115 - 21116:21116 - 21116:21116/udp - 21118:21118 volumes: - ./data:/root networks: - rustdesk-net depends_on: - hbbr restart: unless-stopped hbbr: container_name: hbbr image: rustdesk/rustdesk-server:latest command: hbbr ports: - 21117:21117 - 21119:21119 volumes: - ./data:/root networks: - rustdesk-net restart: unless-stopped networks: rustdesk-net: external: false
四、CMD到docker-compose.yml文件目录下运行
docker-compose up -d
五、查看Key
六、配置
标签:21117,21116,RustDesk,Windows,image,hbbr,Docker,docker,rustdesk From: https://www.cnblogs.com/wlei5206/p/18340188