正文
官方文档 https://milvus.io/docs/install_standalone-docker.md
安装docker compose 2.10.0
sudo curl -L “https://github.com/docker/compose/releases/download/v2.10.0/docker-compose- ( u n a m e − s ) − (uname -s)- (uname−s)−(uname -m)” -o /usr/local/bin/docker-compose
国内镜像地址
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/v2.10.0/docker-compose-uname -s
-uname -m
> /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
查看一下version,显示有版本号那就说明安装成功了
docker-compose version
yml位置 /dataset/projects/milvus_server
cd /dataset/projects/milvus_server
启动
$ sudo docker-compose up -d
[+] Running 3/3
⠿ Container milvus-minio Started 0.5s
⠿ Container milvus-etcd Started 1.6s
⠿ Container milvus-standalone Started
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a2caa882147e milvusdb/milvus:v2.1.1 “/tini – milvus run…” 14 seconds ago Up 12 seconds 0.0.0.0:9091->9091/tcp, :::9091->9091/tcp, 0.0.0.0:19530->19530/tcp, :::19530->19530/tcp milvus-standalone
4c32a00938d3 minio/minio:RELEASE.2022-03-17T06-34-49Z “/usr/bin/docker-ent…” 14 seconds ago Up 13 seconds (health: starting) 9000/tcp milvus-minio
28afa4ab49f1 quay.io/coreos/etcd:v3.5.0 “etcd -advertise-cli…” 14 seconds ago Up 12 seconds 2379-2380/tcp milvus-etcd
停止
sudo docker-compose down
删除
sudo rm -rf volumes
启动attu
docker run -p 8000:3000 -e HOST_URL=http://192.168.3.99:8000 -e MILVUS_URL=192.168.3.99:19530 zilliz/attu:latest
浏览器访问
http://192.168.3.99:8000/#/connect