Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ali-middleware-5-sync
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
ali-middleware-5-sync
Commits
def7ccc7
There was an error fetching the commit references. Please try again later.
Commit
def7ccc7
authored
5 years ago
by
郭浩
Browse files
Options
Downloads
Patches
Plain Diff
添加 docker provider/consumer 问题排查方式
parent
a2be8d50
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FAQ.md
+40
-1
40 additions, 1 deletion
FAQ.md
with
40 additions
and
1 deletion
FAQ.md
+
40
−
1
View file @
def7ccc7
选手可以在 issue 或者钉钉群中提问,管理员会将有共性的问题整理于此
\ No newline at end of file
选手可以在 issue 或者钉钉群中提问,管理员会将有共性的问题整理于此
## 00. Docker provider 启动后立即退出/无法启动
1.
手动启动 provider container
```shell
docker run -ti --entrypoint=/bin/bash -p 20880:20880 registry.cn-shanghai.aliyuncs.com/aliware2019/provider
```
2.
运行
`docker-entrypoint.sh`
```shell
docker-entrypoint.sh provider-small &
```
3.
查看启动日志
```shell
tail -f /root/runtime/logs/stdout.log /root/runtime/logs/service-provider.log
```
## 01 Docker consumer 启动后立即退出/无法启动
-
首先请确定已经在本地修改了 host 文件,添加了 provider 的ip。需要注意,provider 的 ip 需要使用外网/局域网的真实ip,不能使用 locahost 或 127.0.0.0 等环回地址。
1.
手动启动 consumer container
```shell
docker run -ti --entrypoint=/bin/bash -p 8087:8087 registry.cn-shanghai.aliyuncs.com/aliware2019/consumer
```
2.
运行
`docker-entrypoint.sh`
```shell
docker-entrypoint.sh &
```
3.
查看启动日志
```shell
tail -f /root/runtime/logs/stdout.log /root/runtime/logs/service-consumer.log
```
如果有连接 provider 不成功的错误,一般是由于 provider 的 url 配置不对或 host 没配置,修改 localhost/127.0.0.1 等地址为真实ip即可修复
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment