Using Testcontainers and SQL Server to test Java projects on M1 Macs

Brian Schlining
2 min readOct 31, 2023

Testcontainers is fantastic project for spinning up throwaway, lightweight resources for testing. Unfortunately, if you are developing on recent Mac M1, M2, or M3 hardware, not all docker containers provide an AArch64 (aka arm64) image that will run natively on these CPUs. One example container that I frequently use is Microsoft’s SQL Server. My Mac will attempt to run the…

--

--

Brian Schlining

Polyglot coder. Deep-sea Researcher. Zazen aficionado. I think squids are pretty cool.