Where is a log file with logs from a container?

后端 未结 7 615
南方客
南方客 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:40

    A container's logs can be found in :

    /var/lib/docker/containers//-json.log
    

    (if you use the default log format which is json)

提交回复
热议问题