Where is a log file with logs from a container?

后端 未结 7 611
南方客
南方客 2020-12-04 06:11

I am running several containers using docker-compose. I can see application logs with command docker-compose logs. However I would like to access r

7条回答
  •  被撕碎了的回忆
    2020-12-04 06:41

    To see how much space each container's log is taking up, use this:

    docker ps -qa | xargs docker inspect --format='{{.LogPath}}' | xargs ls -hl
    

    (you might need a sudo before ls).

提交回复
热议问题