79286827

Date: 2024-12-17 06:18:43
Score: 0.5
Natty:
Report link

I'm using Docker desktop for Mac v4.36. All of direct file access methods are not applicable anymore.

From @djangofan, I found that I can see the full logs of the containers and download them in the UI of Portainer:

docker run -d --restart unless-stopped -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Navigate to http://localhost:9000, create a local account. You'll see the dashboard Portainer dashboard

-> Click on the local env

-> Click containers

-> Select the container you want to see the logs

-> Click on Logs under Container status section

Log screen

🍾 From here, you can see/copy/download the logs

Bonus: with Portainer, you won't see the issue with error from daemon in stream: Error grabbing logs: invalid character '\x00' looking for beginning of value that Docker desktop has.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @djangofan
  • Low reputation (0.5):
Posted by: Hieu Nguyen