taskcat icon indicating copy to clipboard operation
taskcat copied to clipboard

Docker invocation lacks 'taskcat' command execution call

Open viralmutant opened this issue 9 years ago • 2 comments

Installed docker version of the taskcat and was trying to invoke the taskcat help but failed with following message

$ sudo taskcat -h
[dockerize]
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"-h\": executable file not found in $PATH".
ERRO[0000] error waiting for container: context canceled

I noticed that the taskcat binary is calling the container directly with "$@"

$ cat /usr/local/bin/taskcat
echo [dockerize]
docker run -it --rm -v $(pwd):/mnt  taskcat/taskcat $@

But it's missing the taskcat binary call. When I fixed the binary with that call, it now works fine

$ cat /usr/local/bin/taskcat
echo [dockerize]
docker run -it --rm -v $(pwd):/mnt  taskcat/taskcat taskcat $@

viralmutant avatar Jul 06 '17 13:07 viralmutant

Thanks for reporting the bug! I will fix it and push the change.

sshvans avatar Jul 06 '17 19:07 sshvans

Fixed.

sshvans avatar Jul 06 '17 22:07 sshvans