doc.rustdesk.com icon indicating copy to clipboard operation
doc.rustdesk.com copied to clipboard

New website: Problems with `docker compose` command

Open xlionjuan opened this issue 1 year ago • 2 comments

Congrats for the new website, I found the problems with your Simple self-hosting installation command:

The command you provided docker compose up -d will not work even on Ubuntu 24, it will return

$ docker compose

docker: 'compose' is not a docker command.
See 'docker --help'

Because Ubuntu 24 is still using Docker 24 and it didn't support Compose V2, I checked Fedora 40, it is also on Docker 24, when I installing docker-compose package on both Ubuntu 24 and Fedora 40, what they installed is Compose V1, which is still the old one that written by Python, not the V2 one that written by Go, so docker compose will still not work.

You have two solutions:

  • Add docker-compose to your apt install command, and replace docker compose to docker-compose
  • Guide user to use docker/docker-install script, it will auto detect the distro and install latest Docker from Docker official (Current is Docker 27)

https://docs.docker.com/engine/install/

Second question

When I curl rustdesk.com/oss.yml, I found a space between network_mode: "host" and depends_on:, pro.yml also, you may wanna remove it.

services:
  hbbs:
    container_name: hbbs
    image: rustdesk/rustdesk-server:latest
    command: hbbs
    volumes:
      - ./data:/root
    network_mode: "host"

    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:
    container_name: hbbr
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    volumes:
      - ./data:/root
    network_mode: "host"
    restart: unless-stopped

xlionjuan avatar Oct 14 '24 20:10 xlionjuan

bash <(wget -qO- https://get.docker.com) is ok?

rustdesk avatar Oct 15 '24 01:10 rustdesk

https://github.com/rustdesk/doc.rustdesk.com/commit/bb7f8e62b2ca8df32d1b609cc190a6638b7314cf

rustdesk avatar Oct 15 '24 02:10 rustdesk

Yes it can execute

xlionjuan avatar Oct 15 '24 04:10 xlionjuan