You only need internet access to grab the image, I don't think trivy requires internet access itself. All of my image scanning tools run in isolation.