-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update common error message in troubleshooting #5973
docs: update common error message in troubleshooting #5973
Conversation
Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com>
* remote error: GET https://index.docker.io/v2/ContainerImageName: MANIFEST_UNKNOWN: manifest unknown; unknown tag=0.1 | ||
``` | ||
|
||
Trivy is unable to access the container image on the remote registry. If you did not specify a registry, Trivy will use the Docker Container Registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means Trivy is unable to find the container image in the following places.
- docker daemon
- containerd
- podman
- remote registry
trivy image --help | grep image-src
--image-src strings image source(s) to use, in priority order (docker,containerd,podman,remote) (default [docker,containerd,podman,remote])
The default registry is Docker Hub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so why did it not scan my container image that I just built prior to running the command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on your configuration. If your local daemon is not located in the default path, you must specify the path.
$ trivy image -h | grep docker-host
--docker-host string unix domain socket path to use for docker scanning
OR DOCKER_HOST
also works.
https://docs.docker.com/engine/reference/commandline/cli/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oki, thank you, I will update the description
``` | ||
|
||
Trivy is unable to access the container image on the remote registry. If you did not specify a registry, Trivy will use the Docker Container Registry. | ||
The container image will likely have to be pushed first to the registry. Then, try to pull the same container image from the registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trivy can scan local images.
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com>
…asecurity#5929) Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com> Co-authored-by: saso <sasoakira6114@gmail.com>
Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com>
59e6fc8
to
46b6d5b
Compare
I see several people struggle with this error message