• 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 -O docker-compose.yml
  • For Milvus cluster:
$ wget -O docker-compose.yml

  1. Download requirement and script files.
$ wget
$ wget
  1. Pull and save images.
pip3 install -r requirements.txt
python3 --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: