nikto icon indicating copy to clipboard operation
nikto copied to clipboard

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

Open GrimRob opened this issue 1 year ago • 3 comments

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 avatar Jul 30 '23 19:07 GrimRob

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!

mce1978 avatar Sep 22 '23 08:09 mce1978

@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 avatar Dec 29 '23 12:12 HuntClauss

I think that this might be the same issue https://github.com/sullo/nikto/issues/777#issuecomment-1586196518. So adding Nikto to exception list in Windows Defender / your anti virus should solve the problem

HuntClauss avatar Dec 29 '23 15:12 HuntClauss