k8s error
BridgeWind opened this issue · comments
when the run command like this:
docker run -it test_bi --input-raw k8s://default/pod/nginx-ff6774dc6-qzxrp:80 --output-stdout
it generates this error:
2023/01/08 10:00:46 pcap handles error
does any one know how to fix it?
steps:
1.inside goreplay-2.0.0-rc2 folder run :go build -ldflags "-extldflags "-static""
2.build the image with Dockerfile like below:
FROM alpine:3.16 as builder
RUN apk add --no-cache ca-certificates openssl
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./goreplay .
ENTRYPOINT ["./goreplay"]
3.Run the docker image using:
docker run -it test_bi --input-raw k8s://default/pod/nginx-ff6774dc6-qzxrp:80 --output-stdout
4.get error like:
2023/01/08 10:00:46 pcap handles error
Similar problem was seen in #1080 (comment)