Docker安装
安装
curl -fsSL get.docker.com | sh
启动
systemctl status docker
查看版本
[root@icmiZ ~]# docker version
Client: Docker Engine - Community
Version: 24.0.4
API version: 1.43
Go version: go1.20.5
Git commit: 3713ee1
Built: Fri Jul 7 14:54:21 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.4
查看状态
systemctl start docker
[roo@icmiZ ~]# systemctl status docker
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since 二 2023-07-18 16:49:41 CST; 1min 38s ago
Docs: https://docs.docker.com
Main PID: 24533 (dockerd)
Tasks: 10
Memory: 26.2M
CGroup: /system.slice/docker.service
└─24533 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
查看信息
docker info
[root@icmiZ ~]# docker info
Client: Docker Engine - Community
Version: 24.0.4
Context: default
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 24.0.4
Storage Driver: overlay2
...
Docker Root Dir: /var/lib/docker
Debug Mode: false
Live Restore Enabled: false
其中Docker Root Dir: /var/lib/docker 为默认安装路径
查看镜像
[root@iZ2zej7hcmiZ milvus]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
milvusdb/milvus v2.1.4 d9a5c977c414 9 months ago 711MB
zilliz/attu v2.1.0 0494ca9b3194 12 months ago 418MB
minio/minio RELEASE.2022-03-17T06-34-49Z 239acc52a73a 16 months ago 228MB
centos 7 eeb6ee3f44bd 22 months ago 204MB
quay.io/coreos/etcd v3.5.0 a7908fd5fb88 2 years ago 110MB
删除镜像
[root@iZ2miZ milvus]# docker rmi d9a5c977c414
Untagged: milvusdb/milvus:v2.1.4
Docker Compose安装
wget https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-linux-x86_64
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
chmod 777 /usr/local/bin/docker-compose
[root@icmiZ bin]# docker-compose -v
Docker Compose version v2.2.2
Milvus安装
服务端安装
mkdir compose_milvus
wget https://github.com/milvus-io/milvus/releases/download/v2.1.4/milvus-standalone-docker-compose.yml -O docker-compose.yml
启动
docker-compose up -d
关闭
docker-compose down
查看进程
docker-compose ps
删除数据
rm -rf volumes
客户端安装
docker pull zilliz/attu:v2.1.0
docker run -itd --restart=always -p 13000:3000 -e HOST_URL=http://127.0.0.1:13000 -e MILVUS_URL=127.0.0.1:19530 zilliz/attu:v2.1.0