Changed to ENTRYPOINT instead of CMD. After build and run, with CMD, below is what occurs:
docker run -it --rm dnssearch -domain google.com
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "-domain": executable file not found in $PATH".
When changed to 'ENTRYPOINT ["/app/dnssearch"]' the below commands work:
docker run -it --rm dnssearch -domain google.com
docker run -it --rm dnssearch -domain google.com -consumers 10
Changed to ENTRYPOINT instead of CMD. After build and run, with CMD, below is what occurs:
docker run -it --rm dnssearch -domain google.com docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "-domain": executable file not found in $PATH".
When changed to 'ENTRYPOINT ["/app/dnssearch"]' the below commands work: docker run -it --rm dnssearch -domain google.com docker run -it --rm dnssearch -domain google.com -consumers 10