Giter Club home page Giter Club logo

Comments (14)

hashmap avatar hashmap commented on June 12, 2024

have you built klar binary before building the docker image?

from klar.

umanam avatar umanam commented on June 12, 2024

Yes, I did go build then tried docker run.

from klar.

supereagle avatar supereagle commented on June 12, 2024

@umanam Thanks for your report. I can reproduce this error, will try to fix it.

from klar.

supereagle avatar supereagle commented on June 12, 2024

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.

umanam avatar umanam commented on June 12, 2024

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.

hashmap avatar hashmap commented on June 12, 2024

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.

supereagle avatar supereagle commented on June 12, 2024

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.

hashmap avatar hashmap commented on June 12, 2024
$ 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.

supereagle avatar supereagle commented on June 12, 2024

@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.

nielsole avatar nielsole commented on June 12, 2024

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.

hashmap avatar hashmap commented on June 12, 2024

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.

nielsole avatar nielsole commented on June 12, 2024

Ah, interesting. Probably different go versions then? (I believe they changed some defaults around v1.5)

from klar.

nielsole avatar nielsole commented on June 12, 2024

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.

hashmap avatar hashmap commented on June 12, 2024

Is it solved by #58 ?

from klar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.