mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-25 12:12:16 +02:00
Update _index.en.md
This commit is contained in:
parent
b226200248
commit
f44316b76a
@ -3,38 +3,6 @@ title: Docker
|
|||||||
weight: 3
|
weight: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
### Docker
|
|
||||||
|
|
||||||
Install Docker with this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date!
|
|
||||||
|
|
||||||
Or you can install docker with this single command.
|
|
||||||
|
|
||||||
```
|
|
||||||
bash <(wget -qO- https://get.docker.com)
|
|
||||||
```
|
|
||||||
|
|
||||||
Run the following commands (s6 image may need `./data:/data` instead of `./data:/root`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo docker image pull rustdesk/rustdesk-server-pro
|
|
||||||
sudo docker run --name hbbs -v ./data:/root -td --net=host --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbs
|
|
||||||
sudo docker run --name hbbr -v ./data:/root -td --net=host --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbr
|
|
||||||
```
|
|
||||||
|
|
||||||
{{% notice note %}}
|
|
||||||
The above example uses `sudo` and `--net=host`, this will not work on Windows please remove these commands, if you remove `--net=host` please check below.
|
|
||||||
{{% /notice %}}
|
|
||||||
|
|
||||||
```sh
|
|
||||||
macaddrhbbs=$(echo -n A0-62-2F; dd bs=1 count=3 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"')
|
|
||||||
sudo docker run --name hbbs -p 21114:21114 -p 21115:21115 -p 21116:21116 -p 21116:21116/udp -p 21118:21118 -v ./data:/root -td --mac-address="$macaddrhbbs" --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbs
|
|
||||||
sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v ./data:/root -td --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbr
|
|
||||||
```
|
|
||||||
|
|
||||||
{{% notice note %}}
|
|
||||||
How to [Set up HTTPS for web console manually](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#set-up-https-for-web-console-manually).
|
|
||||||
{{% /notice %}}
|
|
||||||
|
|
||||||
### Docker Compose
|
### Docker Compose
|
||||||
|
|
||||||
With Docker Compose you HAVE to use `network_mode: "host"` to ensure licensing works. Install Docker using this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date!
|
With Docker Compose you HAVE to use `network_mode: "host"` to ensure licensing works. Install Docker using this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date!
|
||||||
@ -69,6 +37,39 @@ Then run `docker compose up -d` or `podman-compose up -d`
|
|||||||
|
|
||||||
> `apt install podman-compose` for `podman-compose` installation
|
> `apt install podman-compose` for `podman-compose` installation
|
||||||
|
|
||||||
|
### Docker Commands
|
||||||
|
|
||||||
|
Install Docker with this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date!
|
||||||
|
|
||||||
|
Or you can install docker with this single command.
|
||||||
|
|
||||||
|
```
|
||||||
|
bash <(wget -qO- https://get.docker.com)
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the following commands (s6 image may need `./data:/data` instead of `./data:/root`):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo docker image pull rustdesk/rustdesk-server-pro
|
||||||
|
sudo docker run --name hbbs -v ./data:/root -td --net=host --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbs
|
||||||
|
sudo docker run --name hbbr -v ./data:/root -td --net=host --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbr
|
||||||
|
```
|
||||||
|
|
||||||
|
{{% notice note %}}
|
||||||
|
The above example uses `sudo` and `--net=host`, this will not work on Windows please remove these commands, if you remove `--net=host` please check below.
|
||||||
|
{{% /notice %}}
|
||||||
|
|
||||||
|
```sh
|
||||||
|
macaddrhbbs=$(echo -n A0-62-2F; dd bs=1 count=3 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"')
|
||||||
|
sudo docker run --name hbbs -p 21114:21114 -p 21115:21115 -p 21116:21116 -p 21116:21116/udp -p 21118:21118 -v ./data:/root -td --mac-address="$macaddrhbbs" --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbs
|
||||||
|
sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v ./data:/root -td --restart unless-stopped docker.io/rustdesk/rustdesk-server-pro hbbr
|
||||||
|
```
|
||||||
|
|
||||||
|
{{% notice note %}}
|
||||||
|
How to [Set up HTTPS for web console manually](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#set-up-https-for-web-console-manually).
|
||||||
|
{{% /notice %}}
|
||||||
|
|
||||||
|
|
||||||
> If you have problem with SELinux on Fedora, please check this [issue](https://github.com/rustdesk/rustdesk-server/issues/230).
|
> If you have problem with SELinux on Fedora, please check this [issue](https://github.com/rustdesk/rustdesk-server/issues/230).
|
||||||
|
|
||||||
{{% notice note %}}
|
{{% notice note %}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user