You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to run the docker image on cmd as you mentioned in the documentation. But it's getting failed with
I updated the docker file as below;
But it didn't work and got the same error previous one.
Could you please assist me on this point?
The text was updated successfully, but these errors were encountered: