Docker log (driver json-file) location for Docker for windows

爷,独闯天下 提交于 2020-05-30 08:05:19

问题


I want to locate a container's log location.

  • I use Docker Desktop for Windows
  • I know that on linux they are at /var/lib/docker/containers/

But where is it. Is it hidden away somewhere in an inaccessible VM?


回答1:


On windows you can find the containers logs inside:

C:\ProgramData\docker\containers\[Your_container_ID]\[Your_container_ID]-json.log



回答2:


For windows , the container storage is the Hyper V's virtual Hard disk.You would have to connect to that hard disk to get the container logs.

See this lonk for more details :https://forums.docker.com/t/where-are-images-stored/9794/7



来源:https://stackoverflow.com/questions/41219225/docker-log-driver-json-file-location-for-docker-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!