1.停掉milvus
cd /home/middle/milvus
docker-compose stop standalone
这里的standalone是在docker-compose.yml中配置的名称,而不是docker-compose ps出来的名称
2.修改配置文件
/home/middle/milvus/milvus.yaml
该文件已经从docker挂载出来到宿主机
# Configures the system log output. log: level: warn # Only supports debug, info, warn, error, panic, or fatal. Default 'info'. file: rootPath: # root dir path to put logs, default "" means no log file will print. please adjust in embedded Milvus: /tmp/milvus/logs maxSize: 300 # MB maxAge: 10 # Maximum time for log retention in day. maxBackups: 20 format: text # text or json stdout: true # Stdout enable or not
3.启动
docker-compose start standalone
标签:compose,log,standalone,middle,修改,docker,日志,milvus From: https://www.cnblogs.com/hxlasky/p/18534931