Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ucnt committed Jul 3, 2017
1 parent 73c585f commit b832857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -7,4 +7,4 @@ FROM alpine:latest
WORKDIR /app
COPY --from=build-stage /go/src/github.com/evilsocket/dnssearch/dnssearch /app
COPY names.txt /app
CMD ["/app/dnssearch"]
ENTRYPOINT ["/app/dnssearch"]

0 comments on commit b832857

Please sign in to comment.