nikto
nikto copied to clipboard
Bug: 2failed to create shim task" when executing docker run
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
- docker build -t sullo/nikto .
- 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)
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 @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
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