arminc / clair-scanner

Docker containers vulnerability scan
Apache License 2.0
848 stars 154 forks source link

Make the http server port configurable #96

Open terryvdgriend opened 4 years ago

terryvdgriend commented 4 years ago

I have created an docker image which runs the clair-scanner, this works all fine and great. However when I want to run the container concurrently I have stumbled upon a little problem.

The clair scanner uses a hard-coded http server port(9279) which is send to clair-local-scan as part the request to analyze layers.

I would like to configure the http server port or atleast be able to configure the port of the request parameter. This way I could expose the clair-scanner on a random port and execute multiple scans at the same time. For now i need to schedule the containers run consecutively to eachother.

terryvdgriend commented 4 years ago

I have noticed there once was a issue that tryed to fixed this but i cannot find it anywhere in the code.

https://github.com/arminc/clair-scanner/pull/11