Milvus installation may fail when images are not properly loaded from public Docker registries. To pull all images and save them into a directory that can be moved to the target host and loaded manually, perform the following procedures:
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/offline/requirements.txt
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/offline/save_image.py
Download requirements.txt and save_image.py, which will be used later.
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml
or download Milvus cluster docker-compose.yml
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
$ pip3 install -r requirements.txt
$ python3 save_image.py --manifest docker-compose.yml
$ helm repo add milvus https://zilliztech.github.io/milvus-helm/
$ helm repo update
$ helm template my-release milvus/milvus --set cluster.enabled=false --set pulsar.enabled=false --set minio.mode=standalone --set etcd.replicaCount=1 > milvus_manifest.yaml
or get Kubernetes manifests of Milvus cluster
$ helm template my-release milvus/milvus > milvus_manifest.yaml
$ pip3 install -r requirements.txt
$ python3 save_image.py --manifest milvus_manifest.yaml
The Docker images will be stored under images directory.
Enter the following command to load the Docker images:
$ for image in $(find . -type f -wholename "./images/*.tar.gz") ; do gunzip -c $image | docker load; done;
$ docker compose -f docker-compose.yml up -d
$ kubectl apply -f milvus_manifest.yaml
$ docker compose -f docker-compose.yml down
$ kubectl delete -f milvus_manifest.yaml