milvus-logo
LFAI
Home
  • Get Started

Install Milvus Offline with Docker Compose

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.

Download files and images

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.

  1. 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

  1. 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
  1. Pull and save images.
pip3 install -r requirements.txt
python3 save_image.py --manifest docker-compose.yml
The images are stored in the /images folder.
  1. Load the images.
cd images/; for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done

Install Milvus offline

Having transferred the images to the target host, run the following command to install Milvus offline.

docker-compose -f docker-compose.yml up -d

Uninstall Milvus

To uninstall Milvus, run the following command.

docker-compose -f docker-compose.yml down

What’s next

Having installed Milvus, you can:

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?