Run Milvus in Docker (Linux)
This page illustrates how to launch a Milvus instance in Docker.
Prerequisites
- Install Docker.
- Check the requirements for hardware and software prior to your installation.
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
You can upgrade the latest version Milvus as follows
# upgrade Milvus
$ bash standalone_embed.sh upgrade
What’s next
Having installed Milvus in Docker, you can:
Check Quickstart to see what Milvus can do.
Learn the basic operations of Milvus:
Deploy your Milvu cluster on clouds:
Explore Milvus Backup, an open-source tool for Milvus data backups.
Explore Birdwatcher, an open-source tool for debugging Milvus and dynamic configuration updates.
Explore Attu, an open-source GUI tool for intuitive Milvus management.