osv-scanner icon indicating copy to clipboard operation
osv-scanner copied to clipboard

No clear error message when scanning Docker container

Open vdespa opened this issue 2 years ago • 1 comments

I've found three situations in which the following message is provided when running osv-scanner --docker someimage:

Scanned docker image with 0 packages
No package sources found, --help for usage information.

These situations are:

  • the image name is incorrect
  • the image is in a private registry that requires authentication
  • the Docker client is installed, but the Docker daemon is not running

I would have expected an unambiguous error message to help with troubleshooting.

vdespa avatar Jan 08 '23 17:01 vdespa