milvus-logo
LFAI
Home
  • Get Started

Run Milvus in Docker

This page illustrates how to launch a Milvus instance in Docker.

Prerequisites

Install Milvus in Docker

Milvus provides an installation script to install it as a docker container. The script is available in the Milvus repository. To install Milvus in Docker, just run

# Download the installation script
$ curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh

# Start the Docker container
$ bash standalone_embed.sh start

If you encounter any issues pulling the image, contact us at community@zilliz.com with details about the problem, and we’ll provide you with the necessary support.

After running the installation script:

  • A docker container named milvus has been started at port 19530.
  • An embed etcd is installed along with Milvus in the same container and serves at port 2379. Its configuration file is mapped to embedEtcd.yaml in the current folder.
  • To change the default Milvus configuration, add your settings to the user.yaml file in the current folder and then restart the service.
  • The Milvus data volume is mapped to volumes/milvus in the current folder.

You can stop and delete this container as follows

# Stop Milvus
$ bash standalone_embed.sh stop

# Delete Milvus data
$ bash standalone_embed.sh delete

What’s next

Having installed Milvus in Docker, you can:

Feedback

Was this page helpful?