tonistiigi / binfmt

Cross-platform emulator collection distributed with Docker images.
MIT License
933 stars 68 forks source link

tcpdump error on ubuntu 20.04 x86_64 guest executed arm64 host #194

Open jhaxhiaj opened 1 month ago

jhaxhiaj commented 1 month ago

Hello,

Platform: Ubuntu 20.04 for arm64 (Graviton3) Guest Image: ubuntu 20.04 for arm64

tcpdump returns the following error: tcpdump: lo: SIOCETHTOOL(ETHTOOL_GET_TS_INFO) ioctl failed: Function not implemented

How to reproduce the issue :

$ docker run -it --platform=amd64 --entrypoint=bash ubuntu
$ apt update && apt install -y tcpdump
$ tcpdump -i lo

The native execution works as excpected:

$ docker run -it --entrypoint=bash ubuntu
$ apt update && apt install -y tcpdump
$ tcpdump -i lo

Results tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes

rudamaia commented 1 month ago

I believe I have the same networking problem. Trying to run rocketchat amd64 but the container can never reach mongodb or anything else outside of it.