查询docker name或者ID
docker ps -a
查询docker日志的存储目录
docker inspect container_ID | grep json.log`
docker inspect container_name | grep json.log
清楚docker日志
cat /dev/null > /var/log/…log-json.log
例如:
root@toolrd-Z370-HD3:/home/toolrd# docker inspect ARC | grep json.log
"LogPath": "/var/lib/docker/containers/80d8511696ccfc2f317326c08cb3ea066a9c6a04eebc981d2588fc73054bcbc4/80d8511696ccfc2f317326c08cb3ea066a9c6a04eebc981d2588fc73054bcbc4-json.log",
root@toolrd-Z370-HD3:/home/toolrd# cat /dev/null > /var/lib/docker/containers/80d8511696ccfc2f317326c08cb3ea066a9c6a04eebc981d2588fc73054bcbc4/80d8511696ccfc2f317326c08cb3ea066a9c6a04eebc981d2588fc73054bcbc4-json.log