Skip to content
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

Closed

Conversation

AnaisUrlichs
Copy link
Member

I see several people struggle with this error message

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.
Copy link
Collaborator

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.

Copy link
Member Author

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?

Copy link
Collaborator

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/

Copy link
Member Author

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.
Copy link
Collaborator

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.

chen-keinan and others added 4 commits January 22, 2024 12:57
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants