-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: docker not found. Please check and try again. #1129
Comments
Downgrading the docker-ce package to 19.03 fixes the issue. |
Thanks very much @rand0mbits. This indeed gets the tool to run. Although this will get the tool to run, there are a bunch of security fixes that have been done in the last few years in Further, running horusec on the latest version of this repo gives a feedback that results in a lot of findings which should be checked and if confirmed resolved (of course there is also a lot of noise coming from GitLeaks which could be prevented by a custom rule configuration): |
I have the same problem. I upgraded my docker to 23.0.0 and this issue popped up for me. |
This is wrong but it works change to
|
I have the same issue over here using the CLI. The strangest thing is that if I use the Visual Studio Code extension, works perfectly. |
The issue is the way to get version.
|
You can use this temp docker image that works with podman: https://hub.docker.com/repository/docker/gilsdav/horusec-cli |
@gilsdav When running the following podman run --rm -v /run/user/$UID/podman/podman.sock:/var/run/docker.sock -v $(pwd):/src/horusec gilsdav/horusec-cli:latest horusec start -p /src/horusec -o json -O /src/horusec/horusec.json -P $(pwd) I'm getting the following result:
Any idea what could be the cause of this? |
Hello @anotherbridge here is the command I use for a non root machine: Yes I use And an example of the horusec-config.json: {
"horusecCliFilesOrPathsToIgnore": [
"*tmp*",
"**/.vscode/**",
"**/*_test.go",
"**/deployments/**",
"**/docs/**",
"**/node_modules/**",
"**/.angular/**",
"**/.git/**"
],
"horusecCliFalsePositiveHashes": [],
"horusecCliToolsConfig": {
"Semgrep": {
"istoignore": false
}
}
}
Finally here is how I created the podman machine: |
What happened:
When trying to run the container as described in the README, i.e.
I am getting the following response:
I tried running the same with root privileges which resulted in the same error. Moreover, I tried running it with podman instead of docker, but still the same problem did arise.
Building the tool using MAKE does result in the same issue.
What you expected to happen:
Horusec will start and analyze the code.
How to reproduce it (as minimally and precisely as possible):
<docker socket>
).<docker socket>
instead of/var/run/docker.sock
(which may coincide).Anything else we need to know?:
The system that is tested on is hardened according to the CIS benchmark. Yet, the same problem could also be confirmed on an unhardened system.
Environment:
horusec version
): v2.8.0The text was updated successfully, but these errors were encountered: