问题
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