If you got here because your SqlContainer tests randomly started to fail like ours. It's not your fault. Seems like there's something up with the ubuntu-latest github runner and someone has found a workaround.
Info from TestContainers
https://github.com/testcontainers/testcontainers-dotnet/pull/1265
Bug/Pr on TestContainers to fix it, maybe?
https://github.com/testcontainers/testcontainers-dotnet/issues/1274 https://github.com/testcontainers/testcontainers-dotnet/pull/1270/files