Read docker logs

  • Take the path to the logs file:
    •  docker inspect –format='{{.LogPath}}’  containerName
  • To use less:
    • sudo less $(docker inspect –format='{{.LogPath}}’   containerName)
    • docker logs containerName 2>&1 |less –R (Where –R is to interpret colors)

Leave a Reply