Skip to content

Commit

Permalink
Update 3.deploy-nebula-graph-with-docker-compose.md (#1126)
Browse files Browse the repository at this point in the history
* Update 3.deploy-nebula-graph-with-docker-compose.md

* Update 3.deploy-nebula-graph-with-docker-compose.md

* Update 3.deploy-nebula-graph-with-docker-compose.md

* Update 3.deploy-nebula-graph-with-docker-compose.md
  • Loading branch information
abby-cyber authored Nov 1, 2021
1 parent ea8f02f commit 03fb36f
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
`master`分支包含最新的未测试代码。请**不要**在生产环境使用此版本。

```bash
$ git clone -b v{{dockercompose.release}} https://github.com/vesoft-inc/nebula-docker-compose.git
$ git clone -b {{dockercompose.branch}} https://github.com/vesoft-inc/nebula-docker-compose.git
```

2. 切换至目录`nebula-docker-compose`
Expand Down Expand Up @@ -175,24 +175,24 @@ $ docker-compose down
如果返回如下信息,表示已经成功停止服务。

```bash
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_graphd1_1 ... done
Stopping nebula-docker-compose_graphd_1 ... done
Stopping nebula-docker-compose_storaged1_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_storaged2_1 ... done
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Stopping nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_graphd1_1 ... done
Removing nebula-docker-compose_graphd_1 ... done
Removing nebula-docker-compose_storaged1_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_storaged2_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Removing nebula-docker-compose_metad0_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing network nebula-docker-compose_nebula-net
```

Expand Down Expand Up @@ -224,10 +224,19 @@ graphd:

`9669:9669`表示内部的9669映射到外部的端口也是9669,下方的`19669`表示内部的19669映射到外部的端口是随机的。

### 如何更新Nebula Graph服务的Docker镜像?
### 如何升级/更新Nebula Graph服务的Docker镜像?

1. 在文件`nebula-docker-compose/docker-compose.yaml`中,找到所有服务的`image`并修改其值为相应的镜像版本。

2. 在目录`nebula-docker-compose`内执行命令`docker-compose pull`,更新Graph服务、Storage服务和Meta服务的镜像。

!!! note
执行`docker-compose pull`命令更新服务镜像前,确保已停止Nebula Graph。

在目录`nebula-docker-compose`内执行命令`docker-compose pull`,可以更新Graph服务、Storage服务和Meta服务的镜像
3. 执行命令`docker-compose up -d`启动Nebula Graph服务

4. 通过Nebula Console连接Nebula Graph后,分别执行命令`show hosts graph``show hosts storage``show hosts meta`查看各服务版本。

### 执行命令`docker-compose pull`报错`ERROR: toomanyrequests`

可能遇到如下错误:
Expand All @@ -244,17 +253,6 @@ graphd:
docker pull vesoft/nebula-console:{{console.branch}}
```

### 如何升级Nebula Graph?

更新Nebula Graph的Docker镜像并重启服务:

1. 在目录`nebula-docker-compose`内,执行命令`docker-compose pull`更新Nebula Graph的Docker镜像。

2. 执行命令`docker-compose down`停止Nebula Graph服务。

3. 执行命令`docker-compose up -d`启动Nebula Graph服务。


### 为什么更新nebula-docker-compose仓库(Nebula Graph 2.0.0-RC)后,无法通过端口`3699`连接Nebula Graph?

在 Nebula Graph 2.0.0-RC 版本,默认端口从`3699`改为`9669`。请使用`9669`端口连接,或修改配置文件`docker-compose.yaml`内的端口。
Expand Down

0 comments on commit 03fb36f

Please sign in to comment.