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

amazonlinux2 not supported? #461

Closed
Alexc0007 opened this issue Apr 13, 2020 · 3 comments · Fixed by #463
Closed

amazonlinux2 not supported? #461

Alexc0007 opened this issue Apr 13, 2020 · 3 comments · Fixed by #463
Assignees

Comments

@Alexc0007
Copy link

Description
according to this issue: #44
amazonlinux2 should be supported to scan by trivy.

however, when i tried to scan such image, i was unable and got the following error:
WARN unsupported os : amazon

What did you expect to happen?
i expect to have the ability to scan amazonlinux2 based images

What happened instead?
trivy didnt scan

Output of run with -debug:

2020-04-13T09:43:38.553Z	DEBUG	cache dir:  /root/.cache/trivy
2020-04-13T09:43:38.553Z	DEBUG	db path: /root/.cache/trivy/db/trivy.db
2020-04-13T09:43:38.560Z	INFO	Updating vulnerability database...
2020-04-13T09:43:38.560Z	DEBUG	git pull
2020-04-13T09:43:38.817Z	DEBUG	total updated files: 1
2020-04-13T09:43:38.821Z	DEBUG	Vulnerability type:  [os library]
2020-04-13T09:43:49.117Z	DEBUG	OS family: amazon, OS version: 2 (Karoo)
2020-04-13T09:43:49.118Z	WARN	unsupported os : amazon

Output of trivy -v:

trivy version 0.1.6

Additional details (base image name, container registry info...):
image based on amazonlinux2
registry: ECR

@Alexc0007 Alexc0007 added the kind/bug Categorizes issue or PR as related to a bug. label Apr 13, 2020
@mrueg
Copy link
Contributor

mrueg commented Apr 13, 2020

Your version of trivy is probably too old, you should try with a newer binary.

@Alexc0007
Copy link
Author

Hi, you are correct...
i used the documentation to install it...

then after checking further i noticed that the documentation is waaaay to old...
i suggest updating all the installation steps to make the relevant to the reality...
(also information on the yam repo is incorrect)
would be nice if things would work the way documentation says they will....

@simar7 simar7 self-assigned this Apr 14, 2020
simar7 added a commit that referenced this issue Apr 14, 2020
@simar7 simar7 removed the kind/bug Categorizes issue or PR as related to a bug. label Apr 14, 2020
simar7 added a commit that referenced this issue Apr 14, 2020
@Alexc0007
Copy link
Author

ill close this issue then.
but the docs should really be updated, it creates lots of confusion...

knqyf263 added a commit that referenced this issue Apr 16, 2020
Fixes: #461
Signed-off-by: Simarpreet Singh <[email protected]>

Co-authored-by: Teppei Fukuda <[email protected]>
GuaoGuao pushed a commit to GuaoGuao/trivy that referenced this issue Jun 24, 2020
liamg pushed a commit that referenced this issue Jun 7, 2022
Fixes: #461
Signed-off-by: Simarpreet Singh <[email protected]>

Co-authored-by: Teppei Fukuda <[email protected]>
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 a pull request may close this issue.

3 participants