Operating system requirements

CentOS

7.5 or higher

Ubuntu LTS

18.04 or higher

Windows

Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later)

macOS

10.13 or higher

Hardware requirements

CPU

Intel CPU Sandy Bridge or higher.

CPU instruction set

SSE42

AVX

AVX2

AVX512

RAM

8 GB or more (depends on the data volume)

Hard drive

SATA 3.0 SSD or higher

Confirm that the Docker daemon is running in the background:

$ docker info

If you do not see the server listed, start the Docker daemon.

Note: On Linux, Docker needs sudo privileges. To run Docker command without sudo, create the docker group and add your user. For details, see the post-installation steps for Linux.

Go to dockerhub, ensure which version of milvus are you going to install. Click the copy button. Full docker pull command will be copied.

dockerhub-milvus

Paste the command in your console window

$ docker pull milvusdb/milvus:0.10.0-cpu-d061620-5f3c00

Create 4 directories for milvus, we will mount these directories into the container later, you can place these folder anywhere, now, we put it at home directory.

$ mkdir -p /home/$USER/milvus/db
$ mkdir -p /home/$USER/milvus/logs
$ mkdir -p /home/$USER/milvus/wal
$ mkdir -p /home/$USER/milvus/conf

Download the standard milvus configuration file, place it in the conf directory you just created.

$ cd /home/$USER/milvus/conf
$ wget https://raw.githubusercontent.com/milvus-io/milvus/v0.10.0/core/conf/demo/server_config.yaml

Note: In case you encounter problems downloading configuration files using wget command, you can also create server_config.yaml under /home/$USER/milvus/conf, then copy and paste the content from server config file.

Run the docker that we just pulled. We will map the ports and mounts directories we just created.

$ docker run --name milvus_cpu_0.10.0 \
-p 19530:19530 \
-p 19121:19121 \
-v /home/$USER/milvus/db:/var/lib/milvus/db \
-v /home/$USER/milvus/conf:/var/lib/milvus/conf \
-v /home/$USER/milvus/logs:/var/lib/milvus/logs \
-v /home/$USER/milvus/wal:/var/lib/milvus/wal \
milvusdb/milvus:0.10.0-cpu-d061620-5f3c00

You can see someting like this, and we are done
dockerhub-milvus

If you want run milvus in the background, add option ‘-d'

$ docker run -d --name milvus_cpu_0.10.0 \
-p 19530:19530 \
-p 19121:19121 \
-v /home/$USER/milvus/db:/var/lib/milvus/db \
-v /home/$USER/milvus/conf:/var/lib/milvus/conf \
-v /home/$USER/milvus/logs:/var/lib/milvus/logs \
-v /home/$USER/milvus/wal:/var/lib/milvus/wal \
milvusdb/milvus:0.10.0-cpu-d061620-5f3c00

Next