Skip to content

Commit 4a74703

Browse files
committed
update tarspro container add /etc/localtime
1 parent 04c3556 commit 4a74703

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

pro/tars-deploy-container.md

+18-10
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ docker run -d --rm --net=host \
2020
-e TARS_LOCALIP="$localip" \
2121
-e TARS_OPEN_WEB=true \
2222
-e TARS_START_PORT=9999 \
23-
--name framework-pro \
2423
-v /data/tars:/data/tars \
25-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
24+
--name framework-pro \
25+
ruanshudong/framework-pro
2626
```
2727

2828
说明:
@@ -53,8 +53,9 @@ docker run -d --rm --net=host \
5353
-e TARS_OPEN_WEB=true \
5454
-e TARS_START_PORT=9000 \
5555
-v /data/tars:/data/tars \
56+
-v /etc/localtime:/etc/localtime \
5657
--name framework-pro \
57-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
58+
ruanshudong/framework-pro
5859
```
5960

6061
在节点`192.168.11.2`上启动:
@@ -68,8 +69,9 @@ docker run -d --rm --net=host \
6869
-e TARS_OPEN_WEB=true \
6970
-e TARS_START_PORT=9100 \
7071
-v /data/tars:/data/tars \
72+
-v /etc/localtime:/etc/localtime \
7173
--name framework-pro \
72-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
74+
ruanshudong/framework-pro
7375
```
7476

7577
在节点`192.168.11.3`上启动:
@@ -83,8 +85,9 @@ docker run -d --rm --net=host \
8385
-e TARS_OPEN_WEB=true \
8486
-e TARS_START_PORT=9200 \
8587
-v /data/tars:/data/tars \
88+
-v /etc/localtime:/etc/localtime \
8689
--name framework-pro \
87-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
90+
ruanshudong/framework-pro
8891
```
8992

9093
- 在一台机器上启动三个容器
@@ -101,8 +104,9 @@ docker run -d --rm --net=host \
101104
-e TARS_OPEN_WEB=true \
102105
-e TARS_START_PORT=9000 \
103106
-v /data/tars:/data/tars \
107+
-v /etc/localtime:/etc/localtime \
104108
--name framework-pro-1 \
105-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
109+
ruanshudong/framework-pro
106110
```
107111

108112
```shell
@@ -114,8 +118,9 @@ docker run -d --rm --net=host \
114118
-e TARS_LOCALIP="192.168.11.1" \
115119
-e TARS_START_PORT=9100 \
116120
-v /data/tars:/data/tars \
121+
-v /etc/localtime:/etc/localtime \
117122
--name framework-pro-2 \
118-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
123+
ruanshudong/framework-pro
119124
```
120125

121126

@@ -128,8 +133,9 @@ docker run -d --rm --net=host \
128133
-e TARS_LOCALIP="192.168.11.1" \
129134
-e TARS_START_PORT=9200 \
130135
-v /data/tars:/data/tars \
136+
-v /etc/localtime:/etc/localtime \
131137
--name framework-pro-3 \
132-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
138+
ruanshudong/framework-pro
133139

134140
```
135141

@@ -153,8 +159,9 @@ docker run -d --rm --net=host \
153159
-e TARS_LOCALIP="$localip" \
154160
-e TARS_OPEN_WEB=true \
155161
-v /data/tars:/data/tars \
162+
-v /etc/localtime:/etc/localtime \
156163
--name $nodename \
157-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
164+
ruanshudong/framework-pro
158165
```
159166

160167
例如:
@@ -168,6 +175,7 @@ docker run -d --rm --net=host \
168175
-e TARS_LOCALIP="192.168.11.1" \
169176
-e TARS_START_PORT=9200 \
170177
-v /data/tars:/data/tars \
178+
-v /etc/localtime:/etc/localtime \
171179
--name tarsnode-4 \
172-
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
180+
ruanshudong/framework-pro
173181
```

0 commit comments

Comments
 (0)