This topic describes how to install Milvus with Docker Compose in an offline environment.
Installation of Milvus might fail due to image loading errors. You can install Milvus in an offline environment to avoid such problems.
To install Milvus offline, you need to pull and save all images in an online environment first, and then transfer them to the target host and load them manually.
- Download an installation file.
- For Milvus standalone:
$ wget https://github.com/milvus-io/milvus/releases/download/v2.0.2/milvus-standalone-docker-compose.yml -O docker-compose.yml
- For Milvus cluster:
$ wget https://github.com/milvus-io/milvus/releases/download/v2.0.2/milvus-cluster-docker-compose.yml -O docker-compose.yml
- Download requirement and script files.
$ 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
- Pull and save images.
pip3 install -r requirements.txt python3 save_image.py --manifest docker-compose.yml
- Load the images.
cd images/; for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done
Having transferred the images to the target host, run the following command to install Milvus offline.
docker-compose -f docker-compose.yml up -d
To uninstall Milvus, run the following command.
docker-compose -f docker-compose.yml down
Having installed Milvus, you can:
Check Hello Milvus to run an example code with different SDKs to see what Milvus can do.
Learn the basic operations of Milvus:
Explore MilvusDM, an open-source tool designed for importing and exporting data in Milvus.