You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/docs/index.md
+52-10Lines changed: 52 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,55 @@
1
-
title: How to run the node
1
+
title: How to run a client node
2
2
--------------------------
3
3
4
-
## What you'll need
4
+
## Using Docker
5
+
6
+
The easiest way of launching a client node is using the [official docker image](https://hub.docker.com/r/nuls/client-node/)
7
+
8
+
[Docker](https://www.docker.com/) is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.
9
+
10
+
You can run a full nuls client node with a single line:
11
+
```sh
12
+
docker run --name nuls-node -d \
13
+
-p 127.0.0.1:6001:6001 \
14
+
-v /tmp/nuls/logs:/nuls/logs \
15
+
-v /tmp/nuls/data:/nuls/data \
16
+
nuls/client-node:1.0.1
17
+
```
18
+
19
+
By default the client interface is accessible in the port `6001`, so once the node is running, check that everything is working visiting the url [localhost:6001](http://localhost:6001) in your browser.
20
+
21
+
After that, try open the commands shell of the node by running:
22
+
```sh
23
+
docker exec -it nuls-node /nuls/bin/cmd.sh
24
+
25
+
# Then get a list of available shell commands
26
+
>>help
27
+
```
28
+
29
+
To see the node logs run:
30
+
```sh
31
+
docker logs -f nuls-node
32
+
```
33
+
34
+
All the data generated by the node is stored in the mounted volume `/tmp/nuls/data`.
35
+
You can read more details about how to configure the client node container [here](https://hub.docker.com/r/nuls/client-node/).
0 commit comments