Closed Bablzz closed 3 years ago
Hello @Bablzz - thank you for reporting this! Are you running into this for any scratch-based image, or just this case?
I was able to duplicate the error you ran into using your instructions. However, as a test, I created an image like this (I used debian:10-slim because it was also used in https://github.com/wrouesnel/postgres_exporter/blob/master/Dockerfile):
$ echo "FROM debian:10-slim" > Dockerfile
$ docker build -t scratch-test:latest .
Sending build context to Docker daemon 26.42MB
Step 1/2 : FROM debian:10-slim
---> f49666103347
Step 2/2 : COPY foo /
---> Using cache
---> fbc26f83425a
Successfully built fbc26f83425a
Successfully tagged scratch-test:latest
$ ./inline_scan analyze -r localhost:8228 -u admin -p foobar -V -g -f ./Dockerfile scratch-test:latest
...
Analysis complete!
...
Could you please see if this is still an issue for how you would like to use inline_scan? Also I would like to point you to some of Anchore's latest and greatest tools at https://toolbox.anchore.io/ - grype runs much faster than the current inline_scan. Thank you!
Hi @robertp ! How is it going?
I tried only this scratch image, didn't test another scratch image.
inline scan works fine with normal image, you are right. But I see trouble with scratch image.
In my case I used to test this image https://github.com/wrouesnel/postgres_exporter/blob/aeec47ead4ad3941cf1b6588b1ac5a44ca9e9c4b/Dockerfile#L4 and got an error
Thanks for sharing the link https://toolbox.anchore.io/ . I'll try it.
Hi @Bablzz Ok, please let us know if you continue to have trouble. Thank you!
@robertp how are you doing?
I have tried grype and it works fine with scratch image. Thanks!
@Bablzz Hey that is great! If you have any feedback for us on grype it is very welcome, and we are excited to hear it.
Hello everyone! I hope you are doing well.
The problem
I've tried to analyze image is based on scratch and this proccess had been failed
Environment
Details
Actual Behaviour
I've got an error
Expected Behaviour
How do you reproduce the error?
It works fine when I use anchore-cli in official anchore docker image