host.testcontainers.internal does not seem to work on ARM64 architecture
See original GitHub issueUsing test containers 1.16.3 and Ubuntu 20.04 on both arm64 and amd64 architectures.
I have a test which serves a file at localhost:3000/myfile
, then inside a testcontainers docker container accesses it with curl http://host.testcontainers.internal:3000/myfile
.
This all works fine for running on amd64 architectures, but when I run the same test on an ARM64 machine curl http://host.testcontainers.internal:3000/myfile
returns nothing.
I checked on the arm machine that curl localhost:3000/myfile
actually returns something, and it does.The problem is accessing that from the container.
Is this a bug or is the host.testcontainers.internal
feature not supported on arm?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Networking and communicating with containers - Testcontainers
It is common to want to connect to a container from your test process, running on the test 'host' machine. For example, you...
Read more >Building Multi-Architecture Docker Images on ARM 64-bit ...
In this post, we'll demonstrate how to build and publish multi-architecture Docker images on an ARM Linux host for both x86–64 (AMD64) and...
Read more >Goodbye Docker Desktop, Hello Minikube! | by Abhinav Sonkar
I have been using Docker Desktop to enable Docker and Kubernetes in Mac for quite some time now. Even though it eats CPU...
Read more >Java Development on an Apple M1 (ARM64) - rieckpil
The underlying issue is a JNA (Java Native Access) dependency incompatibility with Apple's M1 chip. Testcontainers transitively depends on this ...
Read more >Using Apple Silicon (M1) as a cloud engineer, two months in
Did not immediately work natively (and I did not investigate). ✓ Elixir works fine on native architecture in Docker. Minimal testing though. ✓ ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is an interesting one - maybe going to be a puzzle for us to debug 😄
I’ve just tried running
ExposeHostTest
on my M1 Mac with Docker Desktop (Server Version: 20.10.11
) and it passed.I’ve also tried it against a (TCC) remote VM (which is 64-bit Ubuntu) and it worked too.
So I think that this isn’t specific to ARM, but some other combination of factors.
@eddumelendez updating to 1.17.5 fixes it for me. Thank you!