1,185 questions
0
votes
0
answers
120
views
Testcontainers Postgres starts, but SQLAlchemy asyncpg connection times out
I’m trying a local Testcontainers setup for PostgreSQL.
The container starts, and I get a mapped localhost port, but connecting with SQLAlchemy + asyncpg times out.
import asyncio
from sqlalchemy ...
Best practices
0
votes
4
replies
133
views
Spring Boot Testcontainer Static or not?
I want to know what is the best practice for defining Testcontainers in Spring Boot.
I saw different Versions on how to define them.
@TestConfiguration(proxyBeanMethods = false)
class ...
-1
votes
1
answer
109
views
Docker can't pull ryuk image for TestContainers
I'm just getting started with Docker and using TestContainers for a personal C# & MongoDB project for some integration & database testing, but I'm having a hard time getting it working ...
1
vote
1
answer
102
views
How do you test Lua code in an Istio EnvoyFilter resource via K3S TestContainers?
I'm trying to test embedded Lua script in an Istio resource as part of a Java integration test. Normally when I test Istio I deploy Istio and various applications to live Kubernetes environment and ...
1
vote
1
answer
193
views
Testcontainers init script fails on DB initialized by liquibase
Spring-boot application with liquibase managed postgres DB, trying to get @DataJpaTest working with Testcontainers.
The tests work in general - I can launch it, liquibase initialises the DB, and I can ...
1
vote
1
answer
143
views
Spring Boot test JPA repository with TestContainers and JdbcTemplate
I have an application that has a Spring Data JPA repository that uses a local database and a read-only repository that uses JdbcTemplate to access a remote, read-only database. Both are configured ...
4
votes
1
answer
3k
views
Testcontainer error: Could not find a valid Docker environment
Why am I suddenly encountering this error when running the repository tests locally?
2025-12-15 21:59:28 [ZScheduler-Worker-11] ERROR o.t.d.DockerClientProviderStrategy - Could not find a valid Docker ...
0
votes
1
answer
89
views
Why I am facing with Docker dotnet 401 error during Mysql setup in dotnet test container?
I am trying to use TestContainers library to easy my integration testing and I need to create a MySql container for this matter and this is my code:
public sealed class MySqlContainerProvider : ...
2
votes
2
answers
96
views
Testcontainer: H2 is still used in test, Domain "TEXT" not found;
I have a very simple example: the entity uses TEXT column and the test fails because of it, despite using PostgreSQL testcontainer:
application-test.properties
spring.datasource.url=jdbc:postgresql://...
0
votes
1
answer
58
views
MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
Title - MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
I am writing integration tests for an Open Liberty-...
0
votes
1
answer
62
views
Why does `.WithInitScripts` not run my SQL files? [closed]
Description
I am using a test Postgres container (from testcontainers) for more accurate integration tests. To prevent repeating code, I want to use my existing SQL migration files to setup the ...
0
votes
1
answer
115
views
TestContainers GenericContainer does not start up with podman in `host` networking mode
I am running an IntegrationTest using TestContainers version 1.21.3 on a rootless podman setup.
On Startup a GenericContainer is running an assertion that asserts that the ports exposed post container ...
Advice
0
votes
0
replies
33
views
Testcontainers issues
My current employer is a bank. They have some security products installed on the assigned macbooks:
Crowdstrike falcon
zscaler
ms defender
I am not sure what else is installed. I have used ...
88
votes
13
answers
78k
views
Sudden Docker error about "client API version"
I've been successfully using TestContainers with Docker for quite a while now. All of a sudden today, I started getting this error:
UnixSocketClientProviderStrategy: failed with exception ...
0
votes
1
answer
84
views
Configuring same network for multiple generic containers does not work
I am trying to create multiple containers using testcontainers lib which are sharing the same Network. What do I have right now is the following:
network = Network.newNetwork();
container1 = new ...