buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.63k stars 26 forks source link

cant start goreplay in docker #1089

Closed y-koyamatsu closed 2 years ago

y-koyamatsu commented 2 years ago

Hi!

I try to do GoRepaly in dokcer like below Docker Fiile!

FROM alpine:latest
RUN wget https://github.com/buger/goreplay/releases/download/1.3.3/gor_1.3.3_x64.tar.gz
RUN tar -zxvf gor_1.3.3_x64.tar.gz
ENTRYPOINT ./gor --input-raw :8080  --output-stdout

tunl0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Function not implemented Above error was happened....

How can I fix this???

Docker % docker run -it edaubert/goreplay:1.3.3 --input-raw :8080  --output-stdout
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2022/05/24 07:22:12 tunl0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Function not implemented
sswastioyono18 commented 2 years ago

iirc some docker images arent compatible with arm64. Workaround is to add --platform=linux/amd64 in docker run/compose

yqbjtu commented 2 years ago

docker run -it --rm --platform=linux/amd64 gostudy/goreplay:1.3.3 --input-raw-track-response --output-file=req.gor --input-raw :8080 2022/07/02 04:39:33 tunl0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Function not implemented

when I add the --platform=linux/amd64, it still failed.

gostudy/goreplay:1.3.3 is the same with edaubert/goreplay:1.3.3

petaluma007 commented 2 years ago

Try to add --net=host in docker run/compose.

y-koyamatsu commented 2 years ago

Thank you so much!