cloud-discovery icon indicating copy to clipboard operation
cloud-discovery copied to clipboard

Docker Image couldn't run successfully.

Open bbbturan opened this issue 3 years ago • 0 comments

Hello, I'm trying to run the docker image on cmd as you mentioned in the documentation. But it's getting failed with

Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "--restart": executable file not found in $PATH: unknown.` error.

I updated the docker file as below;

`FROM golang:latest WORKDIR /go/src/github.com/twistlock/cloud-discovery/ COPY . . RUN go fmt ./... RUN go vet ./... RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app cmd/server/main.go FROM alpine:latest RUN apk --no-cache add ca-certificates nmap WORKDIR /licenses COPY /licenses/* ./ WORKDIR /root/ COPY --from=0 /go/src/github.com/twistlock/cloud-discovery/app . CMD ["./app"]

But it didn't work and got the same error previous one. Could you please assist me on this point?

bbbturan avatar Feb 14 '22 13:02 bbbturan