Code Monkey home page Code Monkey logo

Comments (2)

skupfer avatar skupfer commented on July 26, 2024

EDIT:

IPv4 works but the server opened by clair seems to be a ipv6 listener which is not yet supported by Docker Desktop and here.

EDIT:

Could you add IPv4 support for the fileserver?

EDIT: Following change to server.go and make build should fix it (tested on WSL)
Line 16, change server := &http.Server{Addr: ":" + httpPort} to server := &http.Server{Addr: "127.0.0.1:" + httpPort}

Warning. Current source throws errors

EDIT: How to build clair-v12

#prepare src directory
mkdir -p /home/$USER/go/src

#install go 1.9.7
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.9.7.linux-amd64.tar.gz -O - | sudo tar -xzf - -C /usr/local

#export path or add it .bashrc / .zshrc / ... -> close session / make new session or source the appropriate file
export PATH=$PATH:/usr/local/go/bin

#install dep
sudo apt install go-dep

#download and extract source
wget https://github.com/arminc/clair-scanner/archive/refs/tags/v12.tar.gz -O - | tar -xzf - -C /home/$USER/go/src

#modify file (look above) and compile
cd /home/$USER/go/src
make ensure
make build

#copy new clair-scanner
sudo cp clair-scanner-12 /usr/local/bin/clair-scanner

from clair-scanner.

YevheniiPokhvalii avatar YevheniiPokhvalii commented on July 26, 2024

It works with Docker Desktop. Pay attention to the IP address. Here is the issue: #42

I had to indicate my gateway IP to make it work.

from clair-scanner.

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.