Display the path to the container's log file

docker inspect

  • Return low-level information on Docker objects.
    More information: <https://docs.docker.com/engine/reference/commandline/inspect/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

docker inspect --format='{{.LogPath}}' {{container}}

click the source code to copy install docker inspect on any operating system with command-not-found.com