Skip to content

Commit 274d78b

Browse files
committed
docker origin
1 parent 79f8c55 commit 274d78b

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

03容器和集群/1docker/1常见问题.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,23 @@ RUN set -xe && apk add --no-cache tzdata && cp -r -f /usr/share/zoneinfo/Asia/Sh
2121
ADD account_api /account_api
2222
ENTRYPOINT [ /account_api ]
2323

24+
```
25+
26+
- 国内源
27+
28+
```json
29+
{
30+
"registry-mirrors" : [
31+
"https://mirror.ccs.tencentyun.com",
32+
"http://registry.docker-cn.com",
33+
"http://docker.mirrors.ustc.edu.cn",
34+
"http://hub-mirror.c.163.com"
35+
],
36+
"insecure-registries" : [
37+
"registry.docker-cn.com",
38+
"docker.mirrors.ustc.edu.cn"
39+
],
40+
"debug" : true,
41+
"experimental" : true
42+
}
2443
```

13区块链/以太坊.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,25 @@ async function processReceiptLogs(transactionReceipt){
257257

258258
```
259259
260+
### ETH启动脚本
261+
262+
```shell
263+
nohup /usr/local/bin/geth --datadir data --cache 20240 --maxpeers 1000 --http --ws --ws.addr 0.0.0.0 --ws.api web3,eth --http --http.addr 0.0.0.0 --http.vhosts "*" --http.api "net,eth,web3,personal,debug,admin,txpool,engine" --http.corsdomain "*" --syncmode=snap > nohup.log 2>&1 &
264+
```
265+
266+
267+
### 共识启动脚本
268+
269+
```shell
270+
#!/bin/bash
271+
nohup ./lighthouse \
272+
--network mainnet \
273+
--datadir /data/eth/consensus/lighthouse \
274+
beacon_node \
275+
--checkpoint-sync-url https://mainnet-checkpoint-sync.stakely.io/ \
276+
--http \
277+
--execution-endpoint http://localhost:8551 \
278+
--execution-jwt /data/eth/geth/data/geth/jwtsecret \
279+
>> nohup.log 2>&1 &
280+
```
281+

0 commit comments

Comments
 (0)