question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

host.testcontainers.internal does not seem to work on ARM64 architecture

See original GitHub issue

Using 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
rnorthcommented, Jan 28, 2022

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.

1reaction
jennyowencommented, Nov 14, 2022

@eddumelendez updating to 1.17.5 fixes it for me. Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found