File tree 2 files changed +44
-3
lines changed
2 files changed +44
-3
lines changed Original file line number Diff line number Diff line change 1
- .idea
1
+ .idea
2
+ data /
3
+ etc /
4
+ log /
Original file line number Diff line number Diff line change @@ -30,17 +30,22 @@ and private key and uncomment the lines. Check the following [section](#ioctl) f
30
30
3 . Export ` IOTEX_HOME ` , create directories, and copy ` config.yaml ` and ` genesis.yaml ` into ` $IOTEX_HOME/etc ` .
31
31
32
32
```
33
- export IOTEX_HOME=[SET YOUR IOTEX HOME PATH HERE]
33
+ cd iotex-testnet
34
+
35
+ export IOTEX_HOME=$PWD #[SET YOUR IOTEX HOME PATH HERE]
34
36
35
37
mkdir -p $IOTEX_HOME/data
36
38
mkdir -p $IOTEX_HOME/log
37
39
mkdir -p $IOTEX_HOME/etc
40
+
41
+ cp config.yaml etc/
42
+ cp genesis.yaml etc/
38
43
```
39
44
40
45
4 . Run the following command to start a node:
41
46
42
47
```
43
- docker run -d \
48
+ docker run -d --name IoTeX-Node \
44
49
-p 4689:4689 \
45
50
-p 14014:14014 \
46
51
-p 8080:8080 \
@@ -90,6 +95,39 @@ ioctl node delegate
90
95
91
96
Refer to [ CLI document] ( https://github.com/iotexproject/iotex-core/blob/master/cli/ioctl/README.md ) for more details.
92
97
98
+ ## Checking node log
99
+
100
+ Container logs can be accessed with the following command.
101
+
102
+ ```
103
+ docker logs IoTeX-Node
104
+ ```
105
+
106
+ content can be filtered with:
107
+
108
+ ```
109
+ docker logs -f --tail 100 IoTeX-Node |grep --color -E "epoch|height|error|rolldposctx"
110
+ ```
111
+
112
+ ## Stop and remove container
113
+
114
+ When starting the container with ``` --name=IoTeX-Node ``` , you must remove before a new building
115
+
116
+ ```
117
+ docker stop IoTeX-Node
118
+ docker rm IoTeX-Node
119
+ ```
120
+
121
+ ## Pause and Restarting container
122
+
123
+ Container can be "stopped" and "restarted" with:
124
+
125
+ ```
126
+ docker stop IoTeX-Node
127
+ docker start IoTeX-Node
128
+ ```
129
+
130
+
93
131
## Fast Sync
94
132
95
133
IoTeX rootchain supports bootstrapping from archives (see below) which will greatly help to reduce the time spent on synchronization.
You can’t perform that action at this time.
0 commit comments