-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
{"Error":{"Message":"could not find layer"}} #372
Comments
I get this same issue with Docker 1.13.0:
It looks like the same issue as #69 but that's marked as Closed/Fixed. Maybe a regression? |
clair not support docker 1.13.0,Please use docker 1.9.1 Clair is broken because of the content addressability inconsistencies in docker 1.10 (clair works fine till docker version 1.9.1); "docker history" command gives SHA256 layer IDs, while "docker save" command saves the layers.tar files in plain layer-UID directories. |
closing due to age. the analyze-local-images tool is deprecated and you should use clairctl instead. thanks |
I'm getting this same issue with the latest clair versions using Docker version 18.03.1-ce, build 9ee9f40. Is there a resolution for this issue or is claire's image scanning functionality broken? |
Running into this same issue using clairctl. |
Same here... clair-git is broken, and clair seems broken too. Docker CE 18.03.1 and clairctl 1.2.8 |
clairctl does not support Clair v3. Clair is not broken. |
Thanks for the feedback. I'm a little lost since it's not displayed as "deprecated" contrary to analyze-local-images. I guess it means we have to find another CLI. I'll go back to my search then. Seems Klar could be the only option? I'll check that. Thanks. |
clairctl was never an official tool, whereas analyze-local-images was once checked into this git repository and was recommended only as a development tool. I believe reg now works with Clair v3, but I haven't tested it myself. |
The issue, for me, is that there don't seem to be any "official" tool. The only list is Integration tools and Clairctl is listed. Even before analyze-local-images. Yesterday I have tried paclair without success (the tool is crashing). Next test is Yair, but the CLI is a real need, and possibilities are not clear on that side :( It takes far much time to find a way to scan images with Clair than setuping Clair. A real "official" tool with release cycles matching the one of Clair would be a great way to improve Clair. |
@archmangler I am having the same troubles now with Docker version 18.03.1-ce. Did you resolve your issue? |
This is a prevailing issue, please provide the steps to resolve this issue. We are getting the same issue with the current version of Clair. |
Adding further details here: Docker version used:
Here is the klar command output:
|
Had same issue with Docker-CE (19.03.6) running on Linux/amd64. When I opened the port 9279 (using ufw command), it started working. |
/root/projects/bin/analyze-local-images quay.io/coreos/clair-git:latest
2017-04-26 15:42:40.385232 I | Saving quay.io/coreos/clair-git:latest to local disk (this may take some time)
2017-04-26 15:42:48.722948 I | Retrieving image history
2017-04-26 15:42:48.735735 I | Analyzing 18 layers...
2017-04-26 15:42:48.735755 I | Analyzing
2017-04-26 15:42:48.738308 I | Could not analyze layer: Got response 400 with message {"Error":{"Message":"could not find layer"}}
docker attach 3bb0b52dfece
2017-04-26 07:37:23.915746 E | clair: layer : failed to extract data from /tmp/analyze-local-image-217567589//layer.tar: could not find layer
2017-04-26 07:37:23.915991 I | v1: 172.18.0.1:37518 "POST /v1/layers" 400 (1.223681ms)
2017-04-26 07:39:31.313341 I | v1: 10.2.4.191:50398 "GET /v1/namespaces" 200 (801.95µs)
2017-04-26 07:42:05.768879 E | clair: layer : failed to extract data from /tmp/analyze-local-image-278772881//layer.tar: could not find layer
2017-04-26 07:42:05.769150 I | v1: 172.18.0.1:37538 "POST /v1/layers" 400 (1.375868ms)
2017-04-26 07:42:20.720419 E | clair: layer : failed to extract data from /tmp/analyze-local-image-463395154//layer.tar: could not find layer
2017-04-26 07:42:20.720817 I | v1: 172.18.0.1:37544 "POST /v1/layers" 400 (1.533479ms)
2017-04-26 07:42:48.737657 E | clair: layer : failed to extract data from /tmp/analyze-local-image-217560860//layer.tar: could not find layer
2017-04-26 07:42:48.738027 I | v1: 172.18.0.1:37550 "POST /v1/layers" 400 (1.346907ms)
2017-04-26 07:43:08.665162 E | clair: layer : failed to extract data from /tmp/analyze-local-image-047019759//layer.tar: could not find layer
2017-04-26 07:43:08.665431 I | v1: 172.18.0.1:37554 "POST /v1/layers" 400 (1.735923ms)
docker version
Client:
Version: 1.12.0
API version: 1.24
Package version: docker-1.12.0-1004.el7.centos.x86_64
Go version: go1.6.3
Git commit: c5ec0f8/1.12.0
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.0
API version: 1.24
Package version: docker-1.12.0-1004.el7.centos.x86_64
Go version: go1.6.3
Git commit: c5ec0f8/1.12.0
Built:
OS/Arch: linux/amd64
The text was updated successfully, but these errors were encountered: