1.查看容器
进入到docker-compose部署目录
cd /home/middle/milvus
docker-compose ps
2.登录到容器
docker exec -ti milvus-standalone /bin/bash
3.查看日志
docker logs --tail=100 milvus-standalone
或者是进入到宿主机的容器目录进行查看
cd /var/lib/docker/containers
[root@localhost containers]# ls
049911c66502a1d33a0567c93eff9b2c66bf9aa28c09bed7f5a774bcd20a2b6d
1fd121d47b28c08cdbbf2a02a05037f747e91679f704085ae324bb73a57e2cb2
63bb515c10ab2cc38c75aa4817e3d123468b39a9f37868e10359c75b690833b3
6780757a582f82b974289719ef92c8d8aa9bd577d4df22a870b8c4bf67d5deae
7c237c13195cba52754d7cae4b49d2600b8304f155b7fc9848657a424c25af6a
8d28eaff03861e5bbef67a23230c937b0ba143b8bfe0cba672a2f196dac6cc96
[root@localhost containers]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8d28eaff0386 langfuse/langfuse:2 "dumb-init -- ./web/…" 2 months ago Up 2 months 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp langfuse-langfuse-server-1
63bb515c10ab postgres "docker-entrypoint.s…" 2 months ago Up 2 months (healthy) 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp langfuse-db-1
6780757a582f zilliz/attu:v2.4.6 "docker-entrypoint.s…" 2 months ago Up 2 months 0.0.0.0:8000->3000/tcp, :::8000->3000/tcp attu
1fd121d47b28 milvusdb/milvus:v2.4.6 "/tini -- milvus run…" 2 months ago Up 2 months (healthy) 0.0.0.0:9091->9091/tcp, :::9091->9091/tcp, 0.0.0.0:19530->19530/tcp, :::19530->19530/tcp milvus-standalone
049911c66502 minio/minio:RELEASE.2023-03-20T20-16-18Z "/usr/bin/docker-ent…" 2 months ago Up 2 months (healthy) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp milvus-minio
7c237c13195c quay.io/coreos/etcd:v3.5.5 "etcd -advertise-cli…" 2 months ago Up 2 months (healthy) 2379-2380/tcp milvus-etcd