ZupIT / horusec

Horusec is an open source tool that improves identification of vulnerabilities in your project with just one command.
https://horusec.io/
Apache License 2.0
1.13k stars 184 forks source link

Horusec cli is not running on docker version > 19.3 #1169

Open brunosoaresoliveira opened 10 months ago

brunosoaresoliveira commented 10 months ago

Hi all! I need some help about Horusec CLI + Docker.

I installed the Horusec CLI using this command line

curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest

Then when I run it (horusec start), this is the error that I see: "time="2023-11-15T10:06:29-03:00" level=error msg="{HORUSEC_CLI} Your docker version is below of: " error=19.3 Error: docker not found. Please check and try again"

Environment:

brunosoaresoliveira commented 10 months ago

Same issue on a machine running Ubuntu 22.04.

offnaria commented 10 months ago

Hello

I also had this problem and it has been fixed with the solution. The point is to install latest-beta version instead of latest.

brunosoaresoliveira commented 10 months ago

Thank you @offnaria but I would like to run the most stable version instead of a beta one.

gilsdav commented 10 months ago

Hello did you try this image gilsdav/horusec-cli ? This is the result of my PR https://github.com/ZupIT/horusec/pull/1163

0xtiago commented 2 weeks ago

Try the beta version as a workaround:

image="horuszup/horusec-cli:v2.9.0-beta.3"; \
docker pull $image ;\
docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v $(pwd):/src/horusec $image horusec start \
    -p /src/horusec -P $(pwd)