这里写目录标题
- [1.Milvus Docker compose(CPU)](#1.Milvus Docker compose(CPU))
-
- [1.1 下载yaml文件](#1.1 下载yaml文件)
- [1.2 启动Milvus](#1.2 启动Milvus)
- [1.3 连接Milvus](#1.3 连接Milvus)
- [1.4 停止Milvus](#1.4 停止Milvus)
- [2.Milvus Docker compose(GPU)](#2.Milvus Docker compose(GPU))
-
- [2.1 运行问题处理](#2.1 运行问题处理)
1.Milvus Docker compose(CPU)
官网流程:
bash
# 1.1 Download the YAML file
wget https://github.com/milvus-io/milvus/releases/download/v2.3.0/milvus-standalone-docker-compose.yml -O docker-compose.yml
# 1.2 Start Milvus
# 启动容器
sudo docker compose up -d
# 查看启动状态
sudo docker compose ps
# 1.3 Connect to Milvus
docker port milvus-standalone 19530/tcp
# 1.4 Stop Milvus
sudo docker compose down
1.1 下载yaml文件
bash
# 跟官网是一致的
wget https://github.com/milvus-io/milvus/releases/download/v2.3.0/milvus-standalone-docker-compose.yml -O docker-compose.yml
wget https://github.com/milvus-io/milvus/releases/download/v2.2.9/milvus-standalone-docker-compose.yml -O docker-compose.yml
1.2 启动Milvus
由于安装的并非standalone-docker-compose
而是Compose plugin
所有启动命令不同:
bash
# 启动容器
docker-compose up -d
# 查看状态
docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
milvus-etcd "etcd -advertise-cli..." etcd running 2379-2380/tcp
milvus-minio "/usr/bin/docker-ent..." minio running (healthy) 9000/tcp
milvus-standalone "/tini -- milvus run..." standalone created 0.0.0.0:9091->9091/tcp, 0.0.0.0:19530->19530/tcp, :::9091->9091/tcp, :::19530->19530/tcp
1.3 连接Milvus
bash
docker port milvus-standalone 19530/tcp
# 输出信息
0.0.0.0:19530
:::19530
1.4 停止Milvus
bash
docker-compose down
2.Milvus Docker compose(GPU)
bash
# 1.1 Download the YAML file
wget https://github.com/milvus-io/milvus/releases/download/v2.3.0/milvus-standalone-docker-compose-gpu.yml -O docker-compose.yml
# 1.2 Start Milvus
# 启动容器
docker-compose up -d
# 查看状态
docker-compose ps
# 1.3 Connect to Milvus
docker port milvus-standalone 19530/tcp
# 输出信息
0.0.0.0:19530
:::19530
# 1.4 Stop Milvus
docker-compose down
2.1 运行问题处理
bash
[WARN] [grpcclient/client.go:147] ["failed to get client address"] [error="find no available rootcoord, check rootcoord state"]
[ERROR] [components/query_node.go:55] ["QueryNode starts error"]
[error="UnexpectedError: Error:DirExist:Operation not permitted"]
[stack="github.com/milvus-io/milvus/cmd/components.(*QueryNode).Run\n\t/go/src/github.com/milvus-io/milvus/cmd/components/query_node.go:55\ngithub.com/milvus-io/milvus/cmd/roles.runComponent[...].func1\n\t/go/src/github.com/milvus-io/milvus/cmd/roles/roles.go:112"]
panic: UnexpectedError: Error:DirExist:Operation not permitted