Reputation: 26483
I wonder if there is a way to bootstrap a Docker environment when running tests with @Testcontainers
.
Right now when I run a test:
@Testcontainers
@SpringBootTest
internal class MyTest() {
@Container
val mongoDBContainer = MongoDBContainer("mongo:latest")
and I don't have Docker Desktop enabled I get:
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
Upvotes: 1
Views: 70