- Use 'docker inspect' to get the log path
- Redirect an empty input to the log file
- Clear logs without stopping the container
- Be cautious to avoid losing important logs
docker
: > $(docker inspect --format='{{.LogPath}}' photoprism)
: > $(docker inspect --format='{{.LogPath}}' photoprism)