Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
updating docker guide (#173)
Browse files Browse the repository at this point in the history
* updating docker guide

* update version
  • Loading branch information
b00f authored Feb 6, 2024
1 parent c3a008d commit 84fc6f2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions website/_i18n/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ dict:
default_ports_explained: >
The default network ports in Pactus are defined as follows. It is recommended not to change these default ports:
- [P2P](https://libp2p.io/) port is set to 21777 for the Testnet, supporting both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50052. The gRPC module is enabled by default.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is enabled by default.
- [Nanomsg](https://nanomsg.org/) port is set to 40799. The Nanomsg service is disabled by default.
- [P2P](https://libp2p.io/) port is set to 21888. P2P supports both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50051. The gRPC module is enabled by default for localhost.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is disabled by default.
- [Nanomsg](https://nanomsg.org/) port is set to 40899. The Nanomsg service is disabled by default.
6 changes: 3 additions & 3 deletions website/_i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ dict:
default_ports_explained: >
The default network ports in Pactus are defined as follows. It is recommended not to change these default ports:
- [P2P](https://libp2p.io/) port is set to 21888 for the Testnet, supporting both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50051. The gRPC module is enabled by default.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is enabled by default.
- [P2P](https://libp2p.io/) port is set to 21888. P2P supports both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50051. The gRPC module is enabled by default for localhost.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is disabled by default.
- [Nanomsg](https://nanomsg.org/) port is set to 40899. The Nanomsg service is disabled by default.
8 changes: 4 additions & 4 deletions website/_i18n/en/user-guides/run-pactus-docker/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 4
version: 5
---

## Preface
Expand Down Expand Up @@ -79,7 +79,7 @@ Now you can start the node and sync with the network. Run the following command
{% tab start-docker linux-mac <i class="fa-brands fa-linux"></i> Linux / <i class="fa-brands fa-apple"></i> macOS %}

```bash
docker run -it -d -v ~/pactus:/root/pactus -p 21888:21888 -p 21888:21888/udp -p 50051:50051 -p 8080:8080 --name pactus-testnet pactus/pactus pactus-daemon start --password <WALLET_PASSWORD>
docker run -it -d -v ~/pactus:/root/pactus -p 21888:21888 -p 21888:21888/udp -p 50051:50051 -p 8080:8080 --name pactus pactus/pactus pactus-daemon start --password <WALLET_PASSWORD>
```

{% endtab %}
Expand All @@ -94,7 +94,7 @@ docker run -it -d -v %USERPROFILE%\pactus:/root/pactus -p 21888:21888 -p 21888:2

{% endtabs %}

This command creates and runs a Docker container named "pactus-testnet".
This command creates and runs a Docker container named "pactus".
Here's an explanation of the Docker flags:

- `-p <host_port>:<container_port>`: Maps a port from your host machine to a port in the Docker container.
Expand All @@ -115,7 +115,7 @@ You can manage the Pactus Docker container with these essential commands:
docker stop pactus
```

This command gracefully stops the "pactus-testnet" container.
This command gracefully stops the "pactus" container.

**Start the container:**

Expand Down
8 changes: 4 additions & 4 deletions website/_i18n/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ dict:
default_ports_explained: >
The default network ports in Pactus are defined as follows. It is recommended not to change these default ports:
- [P2P](https://libp2p.io/) port is set to 21777 for the Testnet, supporting both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50052. The gRPC module is enabled by default.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is enabled by default.
- [Nanomsg](https://nanomsg.org/) port is set to 40799. The Nanomsg service is disabled by default.
- [P2P](https://libp2p.io/) port is set to 21888. P2P supports both UDP and TCP protocols.
- [gRPC](https://grpc.io/) port is set to 50051. The gRPC module is enabled by default for localhost.
- [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is set to 8080. gRPC-gateway is disabled by default.
- [Nanomsg](https://nanomsg.org/) port is set to 40899. The Nanomsg service is disabled by default.

0 comments on commit 84fc6f2

Please sign in to comment.