Skip to content
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

Bug: 2failed to create shim task" when executing docker run #795

Open
GrimRob opened this issue Jul 30, 2023 · 3 comments
Open

Bug: 2failed to create shim task" when executing docker run #795

GrimRob opened this issue Jul 30, 2023 · 3 comments

Comments

@GrimRob
Copy link

GrimRob commented Jul 30, 2023

Expected behavior

runs without errors

Actual behavior

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "nikto.pl": executable file not found in $PATH: unknown.

Steps to reproduce

  1. docker build -t sullo/nikto .
  2. docker run --rm sullo/nikto

Further technical info

I am running windows 11, docker from wsl . I don't have perl installed (hence using docker)

@GrimRob GrimRob added the bug label Jul 30, 2023
@mce1978
Copy link

mce1978 commented Sep 22, 2023

I have the same problem running docker in windows 11 (but not using wsl). Seems like the nikto.pl file can't be read in windows. So I tried to copy paste the code inte nikto.pl. But the file cant be found when it is in the docker image. It disappears. Very strange.

A workaround is to use this instead: https://github.com/ellerbrock/nikto-docker

It worked flawless!

@HuntClauss
Copy link
Contributor

@mce1978 @GrimRob Does this problem still occur?

I installed Docker Desktop on my Windows 11 machine and used WSL 2 as a backend and it worked flawlessly

@HuntClauss
Copy link
Contributor

HuntClauss commented Dec 29, 2023

I think that this might be the same issue #777 (comment). So adding Nikto to exception list in Windows Defender / your anti virus should solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants