VISI

Docker debug logs and commands

Enable Container Runtime debug logs:

  1. Edit /etc/nvidia-container-runtime/config.toml
  2. Uncomment the debug=... line
  3. Reproduce the issue and check the log file

Container logs:

docker logs <container-name>
docker logs --tail=100 <container-name>
docker logs --since=1h <container-name>
docker logs -f <container-name>         # Follow (live)

General Docker troubleshooting:

docker info                             # Daemon info and config
docker system df                        # Disk usage
docker system prune                     # Clean up unused resources
docker inspect <container>              # Detailed container config
docker stats                            # Live resource usage
docker events                           # Real-time Docker events

Quiz

A few quick questions based on this unit. Mark it complete when you are done.

Question 1 / 3

What is docker logs?