@@ -20,9 +20,9 @@ docker run -d --rm --net=host \
20
20
-e TARS_LOCALIP=" $localip " \
21
21
-e TARS_OPEN_WEB=true \
22
22
-e TARS_START_PORT=9999 \
23
- --name framework-pro \
24
23
-v /data/tars:/data/tars \
25
- docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
24
+ --name framework-pro \
25
+ ruanshudong/framework-pro
26
26
```
27
27
28
28
说明:
@@ -53,8 +53,9 @@ docker run -d --rm --net=host \
53
53
-e TARS_OPEN_WEB=true \
54
54
-e TARS_START_PORT=9000 \
55
55
-v /data/tars:/data/tars \
56
+ -v /etc/localtime:/etc/localtime \
56
57
--name framework-pro \
57
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
58
+ ruanshudong/ framework-pro
58
59
```
59
60
60
61
在节点` 192.168.11.2 ` 上启动:
@@ -68,8 +69,9 @@ docker run -d --rm --net=host \
68
69
-e TARS_OPEN_WEB=true \
69
70
-e TARS_START_PORT=9100 \
70
71
-v /data/tars:/data/tars \
72
+ -v /etc/localtime:/etc/localtime \
71
73
--name framework-pro \
72
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
74
+ ruanshudong/ framework-pro
73
75
```
74
76
75
77
在节点` 192.168.11.3 ` 上启动:
@@ -83,8 +85,9 @@ docker run -d --rm --net=host \
83
85
-e TARS_OPEN_WEB=true \
84
86
-e TARS_START_PORT=9200 \
85
87
-v /data/tars:/data/tars \
88
+ -v /etc/localtime:/etc/localtime \
86
89
--name framework-pro \
87
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
90
+ ruanshudong/ framework-pro
88
91
```
89
92
90
93
- 在一台机器上启动三个容器
@@ -101,8 +104,9 @@ docker run -d --rm --net=host \
101
104
-e TARS_OPEN_WEB=true \
102
105
-e TARS_START_PORT=9000 \
103
106
-v /data/tars:/data/tars \
107
+ -v /etc/localtime:/etc/localtime \
104
108
--name framework-pro-1 \
105
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
109
+ ruanshudong/ framework-pro
106
110
```
107
111
108
112
``` shell
@@ -114,8 +118,9 @@ docker run -d --rm --net=host \
114
118
-e TARS_LOCALIP=" 192.168.11.1" \
115
119
-e TARS_START_PORT=9100 \
116
120
-v /data/tars:/data/tars \
121
+ -v /etc/localtime:/etc/localtime \
117
122
--name framework-pro-2 \
118
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
123
+ ruanshudong/ framework-pro
119
124
```
120
125
121
126
@@ -128,8 +133,9 @@ docker run -d --rm --net=host \
128
133
-e TARS_LOCALIP=" 192.168.11.1" \
129
134
-e TARS_START_PORT=9200 \
130
135
-v /data/tars:/data/tars \
136
+ -v /etc/localtime:/etc/localtime \
131
137
--name framework-pro-3 \
132
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
138
+ ruanshudong/ framework-pro
133
139
134
140
```
135
141
@@ -153,8 +159,9 @@ docker run -d --rm --net=host \
153
159
-e TARS_LOCALIP=" $localip " \
154
160
-e TARS_OPEN_WEB=true \
155
161
-v /data/tars:/data/tars \
162
+ -v /etc/localtime:/etc/localtime \
156
163
--name $nodename \
157
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
164
+ ruanshudong/ framework-pro
158
165
```
159
166
160
167
例如:
@@ -168,6 +175,7 @@ docker run -d --rm --net=host \
168
175
-e TARS_LOCALIP=" 192.168.11.1" \
169
176
-e TARS_START_PORT=9200 \
170
177
-v /data/tars:/data/tars \
178
+ -v /etc/localtime:/etc/localtime \
171
179
--name tarsnode-4 \
172
- docker.tarsyun.com/tars-pro/ framework-pro:v1.0.0
180
+ ruanshudong/ framework-pro
173
181
```
0 commit comments