Skip to content

Commit 91b1e4c

Browse files
Replace docker-compose commands with shell scripts
replacing old command with bash docker-up/down.sh for the docker installation process.
1 parent d6e9699 commit 91b1e4c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • docs/xdcchain/developers/node_operators

docs/xdcchain/developers/node_operators/docker.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ nano .env
5858
**For Mainnet run the following commands:**
5959
```bash
6060
cd mainnet
61-
sudo docker-compose -f docker-compose.yml up -d
61+
bash docker-up.sh
6262
```
6363
At this point you should be able to see your masternode on the list of nodes here or as shown below:
6464

@@ -67,15 +67,15 @@ At this point you should be able to see your masternode on the list of nodes her
6767
For Testnet run the following commands:
6868
```bash
6969
cd testnet
70-
sudo docker-compose -f docker-compose.yml up -d
70+
bash docker-up.sh
7171
```
7272
You should be able to see your node listed on the [Apothem Network] page. Select **"Switch to LiveNet"** to check **LiveNetwork** Stats and Select **"Switch to TestNet"** for **TestNetwork**.
7373

7474
Your coinbase address can be found in xdcchain/coinbase.txt file.
7575

7676
For troubleshooting purposes, you can stop the node by using the following command on either Mainnet or Testnet:
7777
```bash
78-
sudo docker-compose -f docker-compose.yml down
78+
bash docker-down.sh
7979
```
8080

8181
**Downloading a Network Snapshot (Mainnet or Apothem)**
@@ -88,7 +88,7 @@ The following steps are to expedite the syncing process of your node with the XD
8888

8989
**Bring down your node:**
9090
```bash
91-
sudo docker-compose -f docker-compose.yml down
91+
bash docker-down.sh
9292
```
9393
**Remove the old xdchain file from the server**
9494
```bash
@@ -130,7 +130,7 @@ This command will bring your node up and it will start syncing to the network. O
130130

131131
**Bring down your node:**
132132
```bash
133-
sudo docker-compose -f docker-compose.yml down
133+
bash docker-down.sh
134134
```
135135

136136
**Remove the old xdchain file from the server**
@@ -162,7 +162,7 @@ mv XDC xdcchain-testnet
162162

163163
**Bring up the node**
164164
```bash
165-
sudo docker-compose -f docker-compose.yml up -d
165+
bash docker-up.sh
166166
```
167167

168168

0 commit comments

Comments
 (0)