From def7ccc7598f86bb548aad4c31f73850a378babb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=AD=E6=B5=A9?= <xiangsheng.gh@alibaba-inc.com>
Date: Sun, 26 May 2019 20:12:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20docker=20provider/consumer?=
 =?UTF-8?q?=20=E9=97=AE=E9=A2=98=E6=8E=92=E6=9F=A5=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 FAQ.md | 41 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/FAQ.md b/FAQ.md
index 925e077..4345bbe 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -1 +1,40 @@
-选手可以在 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
-- 
GitLab