0

I am trying to run an arm docker container on my x86 machine with the goal to eventually compile an application in a CI build. To my surprise it started out quite promising.

I set up qemu-arm-static on my machine (Manjaro Linux on 5.10 kernel) and ran the following to start up the container:

docker run --rm -it --platform linux/arm/v7 --dns 8.8.8.8 arm32v7/debian

I was greeted with a shell which was working as expected. I was able to run gcc for example for compiling a simple hello world. I was also able to use apt to install additional packages etc.

However when trying to run curl to fetch some data I am getting the following error:

root@2de7d98f3e31:/# curl --verbose github.com
* Expire in 0 ms for 6 (transfer 0x400598a0)
* Expire in 1 ms for 1 (transfer 0x400598a0)
* Expire in 4 ms for 1 (transfer 0x400598a0)
* Expire in 2 ms for 1 (transfer 0x400598a0)
* Expire in 5 ms for 1 (transfer 0x400598a0)
* Expire in 5 ms for 1 (transfer 0x400598a0)
* Expire in 4 ms for 1 (transfer 0x400598a0)
* Expire in 8 ms for 1 (transfer 0x400598a0)
* Expire in 8 ms for 1 (transfer 0x400598a0)
* Expire in 8 ms for 1 (transfer 0x400598a0)
* Expire in 10 ms for 1 (transfer 0x400598a0)
* Expire in 10 ms for 1 (transfer 0x400598a0)
* Expire in 8 ms for 1 (transfer 0x400598a0)
* Expire in 10 ms for 1 (transfer 0x400598a0)
* Expire in 10 ms for 1 (transfer 0x400598a0)
* Could not resolve host: github.com
* Expire in 14 ms for 1 (transfer 0x400598a0)
* Closing connection 0
curl: (6) Could not resolve host: github.com

nslookup also gives an error:

root@2de7d98f3e31:/# nslookup github.com
../../../../lib/isc/unix/net.c:595: probing sendmsg() with IP_TOS=b8 failed: No buffer space available

which to me looks like a more general error in the system, however all network related stuff like ping / curl with ip address / apt just work.

My /etc/resolv.conf shows

nameserver 8.8.8.8

as it could be expected when using the docker --dns option

Does anyone have an idea what is happening and what I could try next?

PS: DNS is working fine in non emulated x86 containers

0

I run into same problem. My workaround was temporary downgrade qemu-user-static image:

    docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes 
1
  • This works! Would still be interesting what the exact issue is .. – mmoufou Jan 25 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.