Comments (14)
have you built klar
binary before building the docker image?
from klar.
Yes, I did go build then tried docker run.
from klar.
@umanam Thanks for your report. I can reproduce this error, will try to fix it.
from klar.
The image is built from scratch
, maybe some file needed by klar
is missing. Replace base image scratch
with centos:7
, there is no problem.
from klar.
tried to get the klar file directly and it worked, without docker image.
But it covers global images, not local registry images. I get this error.
Analyse image https://reg.starfleet.w3-969.ibm.com/v2/waas-consul-acl-v2/consul:1.0.392 failed: Analyze error 404: {“Error”:{“Message”:“the resource cannot be found”}}
I do have an image name reg.starfleet.w3-969.ibm.com/reg.starfleet.w3-969.ibm.com with version 1.0.392. But its not processing it and failing with above error
from klar.
I've tried to reproduce it on my Mac:
$ GOOS=linux go build -o klar .
$ docker build -t klar:scratch .
$ docker run klar:scratch
Clair address must be provided
everything works as expected with scratch
image /cc @supereagle
from klar.
What's your docker version?
Docker version in my Env:
ocker version
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:31:53 2017
OS/Arch: darwin/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:51:55 2017
OS/Arch: linux/amd64
Experimental: true
from klar.
$ docker version
Client:
Version: 17.06.1-ce
API version: 1.30
Go version: go1.8.3
Git commit: 874a737
Built: Thu Aug 17 22:53:38 2017
OS/Arch: darwin/amd64
Server:
Version: 17.06.1-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 874a737
Built: Thu Aug 17 22:54:55 2017
OS/Arch: linux/amd64
Experimental: true```
from klar.
@hashmap I really reproduced it on my Mac before, but now can not reproduce in the same environment. So I find another new environment, but this error still can be reproduced. It is a little strange, I am not sure the root cause.
from klar.
Maybe you already have CGO_ENABLED=0
set in your environment variables, @hashmap ?
Full command to build klar is: CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o klar .
This is also wrong in the README.
from klar.
Double checked, no Go-specific vars except GOPATH
. It could be the case if you compile on Linux, because cgo is disabled automatically when cross compiling, but @supereagle was also on Mac and you specified GOOS=linux
, so I'm assuming cross compiling too.
from klar.
Ah, interesting. Probably different go versions then? (I believe they changed some defaults around v1.5)
from klar.
My theory seems to have been wrong: cross compiles are apparently always static by default. golang/go#14906 (see second post by Dave Cheney)
from klar.
Is it solved by #58 ?
from klar.
Related Issues (20)
- Allow for comments in whitelist file HOT 1
- bug: Basic Auth Header should be Case-Insensitive => Nexus 3 Registry does not work with klar HOT 1
- Do you consider add builded image to hub.docker.com? HOT 1
- Can't pull image: Token request returned 400
- Unable to install klar from the source code using the go get command.
- Change whitelist and blacklist terms HOT 6
- Can't pull fsLayers "authentication required" HOT 2
- go get fails HOT 10
- [Help Needed]How to fetch layer information from klar reponse.
- Repo seems abandoned, is it? HOT 2
- Is Klar getting a release to support clair 4.0.4?
- Klar not able to connect to clair server
- support oci images
- Klar giving empty json o/p intermittently
- Feature: Show all vulnerabilities regardless of CLAIR_OUTPUT value with only selected level and higher are count towards the CLAIR_THRESHOLD
- Klar can not be connectred with clair deployed on openshift
- Klar(2.4.0) does not white list specific images HOT 1
- Feature: Klar check whitelisted CVEs and notify on CVE changed Vector (Score)
- Feature: Klar should be able to scan OCI images
- [BUG] Klar always scans amd64 architecture image although DOCKER_PLATFORM_ARCH=arm64 for multi architecture images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klar.