rustdesk / rustdesk-server

RustDesk Server Program
https://rustdesk.com/server
GNU Affero General Public License v3.0
6.84k stars 1.49k forks source link

Possible solution for rustdesk-server-s6 on Armv7 and s6-overlay problem #125

Open ilsalgo opened 2 years ago

ilsalgo commented 2 years ago

Hi, I tried to install Rustdesk server on my raspberry Pi3 with Raspian 32bit with Docker, I followed various guides but nothing worked in my machine. The s6-overlay crashed for security reason e the container don't go up (restanting (111)). I have found a solution by adding at the docker-compose file these lines:

security_opt:

  • seccomp:unconfined

With these lines the container go up and the server work fine.

paspo commented 2 years ago

Can you please post the full docker-compose.yaml file? (you obviously have to redact the sensitive data)

ilsalgo commented 2 years ago

@paspo sure!

version: '3'

services: rustdesk-server: container_name: rustdesk-server ports:

paspo commented 2 years ago

@ilsalgo I tried once again to reproduce your problem, without success.

version: '3'

services:
  rustdesk-server:
    container_name: rustdesk-server
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21117:21117
      - 21118:21118
      - 21119:21119
    image: rustdesk/rustdesk-server-s6:latest-armv7
    environment:
      - "RELAY=MYIP.com:21117"
      - "ENCRYPTED_ONLY=0"
    volumes:
      - ./data:/data
    restart: unless-stopped

What am I missing?

ilsalgo commented 2 years ago

I have try with two installation and the solution to have the server running without reboots was to add the line in question to the docker container.

paspo commented 2 years ago

I understand that. I'm just trying to replicate the issue, but I'm missing something. I need to see it breaking to understand why it's breaking.

Can you try to replicate it with a clean installation and post here the steps?

elico commented 2 years ago

Hi, I tried to install Rustdesk server on my raspberry Pi3 with Raspian 32bit with Docker, I followed various guides but nothing worked in my machine. The s6-overlay crashed for security reason e the container don't go up (restanting (111)). I have found a solution by adding at the docker-compose file these lines:

security_opt:

  • seccomp:unconfined

With these lines the container go up and the server work fine.

I have created a container for armv7 which is tested to work properly on: armv7,arm64,amd64 and sources are at: https://github.com/elico/rustdesk-server-container/

Example docker-compose at: https://github.com/elico/rustdesk-server-container/blob/master/docker-compose.yml

You just need to set the variables accordingly, the DOMAIN tramps the IP variable.

You can see a demo installation of the container on Mikrotik RouterOS device for internal usage inside a company network at: https://www.youtube.com/watch?v=DGC_Wt6HX7w

rustdesk commented 2 years ago

Mikrotik RouterOS

Thanks